diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index ba0fc4b38ce81..088edc06d23d3 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -124,7 +124,7 @@ if( EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} ) endif() foreach( tool IN ITEMS clang opt llvm-as llvm-link ) - if( NOT EXISTS "${${tool}_exe}" AND "${tool}_target" STREQUAL "" ) + if( NOT EXISTS "${${tool}_exe}" AND "${${tool}_target}" STREQUAL "" ) message( FATAL_ERROR "libclc toolchain incomplete - missing tool ${tool}!" ) endif() endforeach()