aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-08 14:51:27 +0200
committerGitHub <noreply@github.com>2022-09-08 14:51:27 +0200
commitbb35422659bdc619d95cb87554632018a5a15636 (patch)
tree1cdbc6e2d249a689bc0a5355901b5463e511aabe /src/nvim
parent11167ab6d569994dd0a4f58155c84b118706380c (diff)
parent7ae74998f0c272f9bc242f9195e376ee049d21da (diff)
downloadrneovim-bb35422659bdc619d95cb87554632018a5a15636.tar.gz
rneovim-bb35422659bdc619d95cb87554632018a5a15636.tar.bz2
rneovim-bb35422659bdc619d95cb87554632018a5a15636.zip
Merge pull request #19958 from dundargoc/build/cmake/cleanup
build: remove ARGS from add_custom_command It's a command that doesn't do anything, kept only for compatibility reasons. build: remove unnecessary policy related code Having cmake version 3.10 as the required minimum version ensures these are set to new by default. build: replace deprecated CMAKE_COMPILER_IS_GNUCC variable Instead use the recommended form CMAKE_C_COMPILER_ID MATCHES "GNU" build: remove unnecessary build functions These functions serve no purpose if they're only used as intermediary functions that passes on arguments to ExternalProject_Add.
Diffstat (limited to 'src/nvim')
-rwxr-xr-xsrc/nvim/CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 635833748d..a1b57f927e 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -443,11 +443,6 @@ endif()
set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES} ${LUA_PREFERRED_LIBRARIES})
-# Add IPO flags (for LTO), or error if CMake does not know the flags. #8654
-if(POLICY CMP0069)
- cmake_policy(SET CMP0069 NEW)
-endif()
-
add_executable(nvim ${NVIM_GENERATED_FOR_SOURCES} ${NVIM_GENERATED_FOR_HEADERS}
${NVIM_GENERATED_SOURCES} ${NVIM_SOURCES} ${NVIM_HEADERS}
${EXTERNAL_SOURCES} ${EXTERNAL_HEADERS})
@@ -461,7 +456,7 @@ set_property(TARGET nvim APPEND PROPERTY
INCLUDE_DIRECTORIES ${LUA_PREFERRED_INCLUDE_DIRS})
set_property(TARGET nvim PROPERTY ENABLE_EXPORTS TRUE)
-if(ENABLE_LTO AND (POLICY CMP0069))
+if(ENABLE_LTO)
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED)
if(IPO_SUPPORTED AND (NOT CMAKE_BUILD_TYPE MATCHES Debug))