summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@qt.io>2021-02-23 16:05:19 +1100
committerCraig Scott <craig.scott@qt.io>2021-02-24 10:38:41 +1100
commit8cdea19ffac5f8206dcd124c1899805755e676e1 (patch)
tree92c1502bbf886856d2c10bd9203e8acb1140e80b /configure.cmake
parenta6a22831aca7d21fdf253bea6d1b0fe0c39e65ae (diff)
downloadqttools-8cdea19ffac5f8206dcd124c1899805755e676e1.tar.gz
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 <joerg.bornemann@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake8
1 files changed, 6 insertions, 2 deletions
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
)