From 8cdea19ffac5f8206dcd124c1899805755e676e1 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Tue, 23 Feb 2021 16:05:19 +1100 Subject: Add more guidance for missing clang feature checks The existing warning mentions that CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR needs to be set, or that the relevant libraries could not be found. If users fix these problems, the warning still persists. It is not obvious to the user that they also need to reset the relevant FEATURE_* cache entries to force these checks to be re-evaluated. Update the warning message so that this is now explicitly stated. Pick-to: 6.0 6.1 Change-Id: I99fbe52e5c5523dee31fd9104978e04d00354c17 Reviewed-by: Joerg Bornemann --- configure.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure.cmake') diff --git a/configure.cmake b/configure.cmake index f895eb30c..b4a02e893 100644 --- a/configure.cmake +++ b/configure.cmake @@ -114,11 +114,15 @@ qt_configure_end_summary_section() # end of "Qt Tools" section qt_configure_add_report_entry( TYPE WARNING MESSAGE "QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation. - Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. On macOS, you can use Homebrew's llvm package." +Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. +On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. +On macOS, you can use Homebrew's llvm package. +You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check." CONDITION NOT QT_FEATURE_clang ) qt_configure_add_report_entry( TYPE WARNING - MESSAGE "Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found." + MESSAGE "Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found. +You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check." CONDITION NOT QT_FEATURE_clangcpp ) -- cgit v1.2.1