diff --git a/cmake/modules/LLVMExternalProjectUtils.cmake b/cmake/modules/LLVMExternalProjectUtils.cmake index 5527769fc93..63178ce6906 100644 --- a/cmake/modules/LLVMExternalProjectUtils.cmake +++ b/cmake/modules/LLVMExternalProjectUtils.cmake @@ -92,7 +92,7 @@ function(llvm_ExternalProject_Add name source_dir) # them. get_cmake_property(variableNames VARIABLES) foreach(varaibleName ${variableNames}) - if(${varaibleName} MATCHES "^${nameCanon}") + if(varaibleName MATCHES "^${nameCanon}") list(APPEND PASSTHROUGH_VARIABLES -D${varaibleName}=${${varaibleName}}) endif()