diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 1a015f05f9..ebbe152be1 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -48,7 +48,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) # them. get_cmake_property(variableNames VARIABLES) foreach(varaibleName ${variableNames}) - if(${varaibleName} MATCHES "^COMPILER_RT") + if(varaibleName MATCHES "^COMPILER_RT") list(APPEND COMPILER_RT_PASSTHROUGH_VARIABLES -D${varaibleName}=${${varaibleName}}) endif()