Skip to content

Commit bdcb662

Browse files
Fail codegen example configuration if no dependcies
We rather want to fail CMake configuration than silently move on, to find out about missing example, after the build. Codegen example is only build "on demand", when UR_BUILD_EXAMPLE_CODEGEN is set.
1 parent 7f56cec commit bdcb662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/codegen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ if(LLVM_FOUND AND PkgConfig_FOUND AND LLVMSPIRVLib_FOUND)
4343
)
4444
endif()
4545
else()
46-
message(STATUS "The environment did not satisfy dependency requirements (LLVM, PkgConfig, LLVMSPIRVLib) for codegen example (skipping target).")
46+
message(FATAL_ERROR "The environment did not satisfy dependency requirements (LLVM, PkgConfig, LLVMSPIRVLib) for codegen example (skipping target).")
4747
endif()

0 commit comments

Comments
 (0)