mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
Extra Generator: Fix extraction of macros with value 0
Fix logic in CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs to handle macros with value `0`.
This commit is contained in:
1 parent
e33c6c357b
commit
e4e6b63ec9
1 file changed
+3
-3
@@ -66,10 +66,10 @@ macro(_DETERMINE_GCC_SYSTEM_INCLUDE_DIRS _lang _resultIncludeDirs _resultDefines
|
||||
#message(STATUS "m1: -${CMAKE_MATCH_1}- m2: -${CMAKE_MATCH_2}- m3: -${CMAKE_MATCH_3}-")
|
||||
|
||||
list(APPEND ${_resultDefines} "${_name}")
|
||||
if(_value)
|
||||
list(APPEND ${_resultDefines} "${_value}")
|
||||
else()
|
||||
if ("${_value}" STREQUAL "")
|
||||
list(APPEND ${_resultDefines} " ")
|
||||
else()
|
||||
list(APPEND ${_resultDefines} "${_value}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
||||
Reference in new issue
Block a user