build/cmake: avoid CMP0054 (#8149)

CMP0054: Only interpret if() arguments as variables or keywords when unquoted.
This commit is contained in:
Justin M. Keyes
2018-03-20 22:19:07 +01:00
committed by GitHub
parent 739fb93a90
commit 10008f7d49

View File

@@ -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()