diff options
author | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2019-09-13 13:37:45 +0200 |
---|---|---|
committer | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2019-09-13 12:00:58 +0000 |
commit | 465f699801e16478c7064b829f49c893e95c7d0b (patch) | |
tree | a6d8d87c1eb6d2f0a501f9692d34982022e7627f | |
parent | fc2f96ffcbd13fbfda3159c826ec2a30942e32b3 (diff) |
Create build directories for 3rd party dependencies manually
Older versions of CMake fail to do this automatically.
Task-number: QTCREATORBUG-22859
Change-Id: I139e399e13dae7e64cdde5b57c8337fa3b751712
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | usagestatistic.pro | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usagestatistic.pro b/usagestatistic.pro index fed7d71..3a80d9e 100644 --- a/usagestatistic.pro +++ b/usagestatistic.pro @@ -95,6 +95,10 @@ QTC_PLUGIN_RECOMMENDS += \ EXTRA_CMAKE_MODULES_INSTALL_PATH = "$${OUT_PWD}/extra-cmake-modules" # Configure extra-cmake-modules + + # Create build directory, in case if CMake won't be able do that + system("$$sprintf($$QMAKE_MKDIR_CMD, $$shell_path($${EXTRA_CMAKE_MODULES_BUILD_PATH}))") + system("cmake -S $$shell_path($${EXTRA_CMAKE_MODULES_SOURCE_PATH}) \ -B $$shell_path($${EXTRA_CMAKE_MODULES_BUILD_PATH}) \ -DCMAKE_INSTALL_PREFIX:PATH=\"$$shell_path($${EXTRA_CMAKE_MODULES_INSTALL_PATH})\"") @@ -128,6 +132,9 @@ QTC_PLUGIN_RECOMMENDS += \ -DENABLE_CLI=OFF \ -DBUILD_SHARED_LIBS=OFF + # Create build directory, in case if CMake won't be able do that + system("$$sprintf($$QMAKE_MKDIR_CMD, $$shell_path($${KUSERFEEDBACK_BUILD_PATH}))") + system("cmake -S $$shell_path($${KUSERFEEDBACK_SOURCE_PATH}) \ -B $$shell_path($${KUSERFEEDBACK_BUILD_PATH}) \ $${KUSERFEEDBACK_COMPONENTS} \ |