aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2014-10-16 13:44:44 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-10-16 15:01:30 +0300
commit1bd5911005dff043c173803bd9387593e4fb2e55 (patch)
tree77640ca45467ae71ed3fd1141a9d49a4600fc69e
parent65f5c4c79aa3e0ab4a635bce6a18433f11977a91 (diff)
Only build it if the clang code model would be built
Change-Id: I8e2ecb56f0c6cfdcbdce9b580db84f3c6c5c709e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-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