aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-06-17 23:29:39 -0400
committerJames McCoy <jamessan@jamessan.com>2018-06-18 08:01:16 -0400
commita26fd8a888c0e8ed27f003ce5948aa3d42fdb087 (patch)
tree6ea98a23c228f4fdd5d87de04ada1a17cd785daf
parent863a87d5f3b248f8a5911abed75c90e435a26b5d (diff)
downloadrneovim-a26fd8a888c0e8ed27f003ce5948aa3d42fdb087.tar.gz
rneovim-a26fd8a888c0e8ed27f003ce5948aa3d42fdb087.tar.bz2
rneovim-a26fd8a888c0e8ed27f003ce5948aa3d42fdb087.zip
cmake: Prefer add_definitions() for setting preprocessor defines
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc40755b4d..a697480fba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -353,7 +353,7 @@ main(void)
}
" MSGPACK_HAS_FLOAT32)
if(MSGPACK_HAS_FLOAT32)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNVIM_MSGPACK_HAS_FLOAT32")
+ add_definitions(-DNVIM_MSGPACK_HAS_FLOAT32)
endif()
option(FEAT_TUI "Enable the Terminal UI" ON)
@@ -374,7 +374,7 @@ if(FEAT_TUI)
}
" UNIBI_HAS_VAR_FROM)
if(UNIBI_HAS_VAR_FROM)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNVIM_UNIBI_HAS_VAR_FROM")
+ add_definitions(-DNVIM_UNIBI_HAS_VAR_FROM)
endif()
find_package(LibTermkey REQUIRED)