aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2019-06-29 20:37:48 +0200
committerGitHub <noreply@github.com>2019-06-29 20:37:48 +0200
commitc207095445286321cbb319ab1498c34b204760cf (patch)
treec839456e97332255d1ced1607477083149a6df77 /src
parent39ba35b38da0724f8562e4e63258ca0c51890e1d (diff)
downloadrneovim-c207095445286321cbb319ab1498c34b204760cf.tar.gz
rneovim-c207095445286321cbb319ab1498c34b204760cf.tar.bz2
rneovim-c207095445286321cbb319ab1498c34b204760cf.zip
build: CMake: do not set CMP0059 to old (#10363)
Keeps using add_definitions for compatibility with older CMake. Newer CMake (3.12) would have `add_compile_definitions`, but it is not required, since `add_defitions` was meant to be used for compile/preprocessor definitions initially anyway. Ref: https://github.com/neovim/neovim/pull/4389
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 99171dbb02..7807125b92 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -7,7 +7,7 @@ if(USE_GCOV)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
- add_compile_definitions(USE_GCOV)
+ add_definitions(-DUSE_GCOV)
endif()
endif()