Skip to content

Commit

Permalink
cmake: fix when using CLSPV_LLVM_SOURCE_DIR (#1424)
Browse files Browse the repository at this point in the history
When using CLSPV_LLVM_SOURCE_DIR we need to look for CMAKE_MODULE at
the right place, not in 'third_party/llvm'.
  • Loading branch information
rjodinchr authored Nov 28, 2024
1 parent 60f822e commit ec3140a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ec3140a

Please sign in to comment.