Skip to content

Commit

Permalink
Print correct LLVM CMake directory
Browse files Browse the repository at this point in the history
LLVM_DIR can be set as a hint for find_package, but LLVMConfig.cmake
sets LLVM_CMAKE_DIR.
  • Loading branch information
hahnjo authored and jenkins committed Feb 18, 2025
1 parent 83f69fc commit eab9007
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 @@ -16,7 +16,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
# See <https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project>.
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_CMAKE_DIR}")

separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
add_definitions(${LLVM_DEFINITIONS_LIST})
Expand Down

0 comments on commit eab9007

Please sign in to comment.