aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qbs/modules/libclang/libclang.qbs5
-rw-r--r--src/plugins/plugins.pro3
2 files changed, 7 insertions, 1 deletions
diff --git a/qbs/modules/libclang/libclang.qbs b/qbs/modules/libclang/libclang.qbs
index eaadeb3bfa..6e15ed36d7 100644
--- a/qbs/modules/libclang/libclang.qbs
+++ b/qbs/modules/libclang/libclang.qbs
@@ -27,7 +27,10 @@ Module {
property stringList llvmLibs: clangProbe.llvmLibs
validate: {
- if (!clangProbe.found)
+ if (!clangProbe.found) {
+ console.warn("Set LLVM_INSTALL_DIR to build the Clang Code Model."
+ + " For details, see doc/src/editors/creator-clang-codemodel.qdoc.");
throw "No usable libclang found";
+ }
}
}
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index cae83a3431..071405cf51 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -75,6 +75,9 @@ exists(../shared/qbs/qbs.pro)|!isEmpty(QBS_INSTALL_DIR): \
isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
exists($$LLVM_INSTALL_DIR) {
SUBDIRS += clangcodemodel
+} else {
+ warning("Set LLVM_INSTALL_DIR to build the Clang Code Model. " \
+ "For details, see doc/src/editors/creator-clang-codemodel.qdoc.")
}
isEmpty(IDE_PACKAGE_MODE) {