[cmake] Print LLVM source dir when configuring

This makes it easier to spot which LLVM install was picked up.
This commit is contained in:
Kim Gräsman 2022-12-18 15:21:10 +01:00
parent e28a2853e7
commit 5220063727
1 changed files with 4 additions and 1 deletions

View File

@ -23,11 +23,13 @@ if (iwyu_standalone_build)
include(AddLLVM)
include(HandleLLVMOptions)
set(iwyu_llvm_dir ${LLVM_DIR})
set(iwyu_include_dirs
${LLVM_INCLUDE_DIRS}
${CLANG_INCLUDE_DIRS}
)
else()
set(iwyu_llvm_dir ${CMAKE_SOURCE_DIR})
set(iwyu_include_dirs
${LLVM_SOURCE_DIR}/include
${LLVM_EXTERNAL_CLANG_SOURCE_DIR}/include
@ -36,7 +38,8 @@ else()
)
endif()
message(STATUS "IWYU: configuring for LLVM ${LLVM_VERSION}...")
message(STATUS
"IWYU: configuring for LLVM ${LLVM_VERSION} from ${iwyu_llvm_dir}")
# The good default is given by the llvm toolchain installation itself, but still
# in case both static and shared libraries are available, allow to override that