From ec3140a5dca7a3fbbe0f838a28640bb82b966eee Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Thu, 28 Nov 2024 21:15:24 +0100 Subject: [PATCH] cmake: fix when using CLSPV_LLVM_SOURCE_DIR (#1424) When using CLSPV_LLVM_SOURCE_DIR we need to look for CMAKE_MODULE at the right place, not in 'third_party/llvm'. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fcb7d530..05c694a57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,7 +152,7 @@ else() add_subdirectory(${CLSPV_LLVM_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/third_party/llvm EXCLUDE_FROM_ALL) # Ensure clspv and LLVM use the same build options (e.g. -D_FILE_OFFSET_BITS=64). - list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/third_party/llvm/llvm/cmake/modules/) + list(APPEND CMAKE_MODULE_PATH ${CLSPV_LLVM_SOURCE_DIR}/cmake/modules/) include(HandleLLVMOptions) endif()