We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aeeff3 commit dc74c69Copy full SHA for dc74c69
libclc/CMakeLists.txt
@@ -94,10 +94,11 @@ if( EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} )
94
endforeach()
95
endif()
96
97
-if( NOT TARGET libclc::clang OR NOT TARGET libclc::opt
98
- OR NOT TARGET libclc::llvm-as OR NOT TARGET libclc::llvm-link )
99
- message( FATAL_ERROR "libclc toolchain incomplete!" )
100
-endif()
+foreach( tool IN ITEMS clang opt llvm-as llvm-link )
+ if( NOT TARGET libclc::${tool} )
+ message( FATAL_ERROR "libclc toolchain incomplete - missing tool ${tool}!" )
+ endif()
101
+endforeach()
102
103
# llvm-spirv is an optional dependency, used to build spirv-* targets.
104
find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
0 commit comments