summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-07-25 23:20:39 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-08-29 20:12:09 +0000
commit10cb61f3cff1f2300a4af2916eff8c27717fb347 (patch)
treed961b59fc13b89dfd7fe948e6c4d82da9171a29f
parentbb6da94e5dc3d29b57690e9ead33e67ff56c513e (diff)
Fix build when using QTC_SOURCE environment variable
It was supported in the subdir, but not in the root project Change-Id: I41e17881fde097d5d2f506efc0c7c9d3fd4817a8 Reviewed-by: Artur Shepilko <artur.shepilko@nomadbyte.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r--fossil.pro6
1 files changed, 6 insertions, 0 deletions
diff --git a/fossil.pro b/fossil.pro
index 1a32b33..629cd87 100644
--- a/fossil.pro
+++ b/fossil.pro
@@ -1,3 +1,9 @@
+isEmpty(IDE_SOURCE_TREE): IDE_SOURCE_TREE = $$(QTC_SOURCE)
+isEmpty(IDE_SOURCE_TREE): error("You need to set the environment variable QTC_SOURCE to point to the directory where the Qt Creator sources are")
+
+isEmpty(IDE_BUILD_TREE): IDE_BUILD_TREE = $$(QTC_BUILD)
+isEmpty(IDE_BUILD_TREE): error("You need to set the environment variable QTC_BUILD to point to the directory where Qt Creator was built")
+
TEMPLATE = subdirs
SUBDIRS += plugins/fossil