From 52200637274acb0f1960080480573db3b5be1af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Gr=C3=A4sman?= Date: Sun, 18 Dec 2022 15:21:10 +0100 Subject: [PATCH] [cmake] Print LLVM source dir when configuring This makes it easier to spot which LLVM install was picked up. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0101f33..6b8a025 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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