diff options
author | James McCoy <jamessan@jamessan.com> | 2018-06-17 23:29:39 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-06-18 08:01:16 -0400 |
commit | a26fd8a888c0e8ed27f003ce5948aa3d42fdb087 (patch) | |
tree | 6ea98a23c228f4fdd5d87de04ada1a17cd785daf | |
parent | 863a87d5f3b248f8a5911abed75c90e435a26b5d (diff) | |
download | rneovim-a26fd8a888c0e8ed27f003ce5948aa3d42fdb087.tar.gz rneovim-a26fd8a888c0e8ed27f003ce5948aa3d42fdb087.tar.bz2 rneovim-a26fd8a888c0e8ed27f003ce5948aa3d42fdb087.zip |
cmake: Prefer add_definitions() for setting preprocessor defines
-rw-r--r-- | CMakeLists.txt | 4 |
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) |