Checking defined isn't good enough we also need to handle defined to empty string.
llvm-svn: 282125
# Populate the passthrough variables
foreach(variableName ${CLANG_BOOTSTRAP_PASSTHROUGH} ${_BOOTSTRAP_DEFAULT_PASSTHROUGH})
if(DEFINED ${variableName})
- string(REPLACE ";" "\;" value ${${variableName}})
+ if("${${variableName}}" STREQUAL "")
+ set(value "")
+ else()
+ string(REPLACE ";" "\;" value ${${variableName}})
+ endif()
list(APPEND PASSTHROUGH_VARIABLES
-D${variableName}=${value})
endif()