summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authoribisz <istvan.bisz@t-online.hu>2018-08-24 10:45:30 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-24 17:51:30 (GMT)
commite4e6b63ec96dc4a51fc336efd28e5f2b3f8d455f (patch)
tree2c0fd781bbe08c062ec51c759c662248e03b574c /Modules
parente33c6c357b61ed0cc5b9f7c01e4ea04deca26b39 (diff)
downloadCMake-e4e6b63ec96dc4a51fc336efd28e5f2b3f8d455f.zip
CMake-e4e6b63ec96dc4a51fc336efd28e5f2b3f8d455f.tar.gz
CMake-e4e6b63ec96dc4a51fc336efd28e5f2b3f8d455f.tar.bz2
Extra Generator: Fix extraction of macros with value 0
Fix logic in CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs to handle macros with value `0`.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake b/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
index 3a72622..55e0373 100644
--- a/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
+++ b/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
@@ -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()