aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clangstaticanalyzer.pro6
1 files changed, 5 insertions, 1 deletions
diff --git a/clangstaticanalyzer.pro b/clangstaticanalyzer.pro
index 5a433f2bd4..16928841ee 100644
--- a/clangstaticanalyzer.pro
+++ b/clangstaticanalyzer.pro
@@ -1,6 +1,10 @@
TEMPLATE = subdirs
CONFIG += ordered
-SUBDIRS += plugins/clangstaticanalyzer
+#only build on same condition as clang code model plugin
+isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
+!isEmpty(LLVM_INSTALL_DIR) {
+ SUBDIRS += plugins/clangstaticanalyzer
+}
QMAKE_EXTRA_TARGETS = docs install_docs # dummy targets for consistency