fix: set the VERSION from dtkcore version on other dtk project
authorzccrs <ccrr1314@live.com>
Mon, 5 Mar 2018 09:48:00 +0000 (17:48 +0800)
committerzccrs <ccrr1314@live.com>
Mon, 5 Mar 2018 09:48:00 +0000 (17:48 +0800)
Change-Id: I8dd9b4659102552553b2b5a48406168eff7f5838

src/dtk_build.prf

index 77cd6ba0292dfe584f69d859e1b8cd03b5dab534..273fd3baddccc16a0cee67d859a8c11ad6dc0d90 100644 (file)
@@ -1,8 +1,7 @@
 defineTest(checkDtkVersion) {
     isEmpty(VERSION) {
         !isEqual(TARGET, dtkcore) {
-            PKG_CONFIG = $$pkgConfigExecutable()
-            !isEmpty(PKG_CONFIG): VERSION = $$system($$PKG_CONFIG --modversion dtkcore)
+            VERSION = $${QT.dtkcore.VERSION}
         }
 
         #TODO: faild in window