aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-20 22:19:07 +0100
committerGitHub <noreply@github.com>2018-03-20 22:19:07 +0100
commit10008f7d49fc090b9c727328e0ca27f75f0a0e27 (patch)
tree881a1f48b57cb2ce55dc192cb416f5a4a4b4590d
parent739fb93a90b4372b5b37ea80a05a29a5a6700161 (diff)
downloadrneovim-10008f7d49fc090b9c727328e0ca27f75f0a0e27.tar.gz
rneovim-10008f7d49fc090b9c727328e0ca27f75f0a0e27.tar.bz2
rneovim-10008f7d49fc090b9c727328e0ca27f75f0a0e27.zip
build/cmake: avoid CMP0054 (#8149)
CMP0054: Only interpret if() arguments as variables or keywords when unquoted.
-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 5fb8b7fe0f..606baff619 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -175,7 +175,7 @@ endif()
get_directory_property(gen_cdefs COMPILE_DEFINITIONS)
foreach(gen_cdef ${gen_cdefs} DO_NOT_DEFINE_EMPTY_ATTRIBUTES)
- if(NOT "${gen_cdef}" MATCHES "INCLUDE_GENERATED_DECLARATIONS")
+ if(NOT ${gen_cdef} MATCHES "INCLUDE_GENERATED_DECLARATIONS")
list(APPEND gen_cflags "-D${gen_cdef}")
endif()
endforeach()