Skip to content

Commit 72e1663

Browse files
vmaksimomaarquitos14
authored andcommitted
[CMake] Force LLVM discovery via LLVMConfig.cmake (CONFIG mode) (KhronosGroup#3598)
This makes LLVM detection deterministic and ensures we use LLVM’s supported CMake integration (`LLVMConfig.cmake`) rather than potentially picking up an environment-provided `FindLLVM.cmake` module. * Out-of-tree builds require `LLVMConfig.cmake` to be discoverable (set `LLVM_DIR` / `CMAKE_PREFIX_PATH` if needed). * In-tree builds are unaffected (the external `find_package(LLVM ...)` path isn’t used there).
1 parent b080c0e commit 72e1663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if(LLVM_SPIRV_BUILD_EXTERNAL)
7979
)
8080
endif(LLVM_SPIRV_INCLUDE_TESTS)
8181

82-
find_package(LLVM ${BASE_LLVM_VERSION} REQUIRED
82+
find_package(LLVM ${BASE_LLVM_VERSION} REQUIRED CONFIG
8383
COMPONENTS
8484
Analysis
8585
BitReader

0 commit comments

Comments
 (0)