diff options
author | Hannah von Reth <hannah.vonreth@kdab.com> | 2016-11-11 10:02:34 +0100 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@kdab.com> | 2016-11-14 16:03:39 +0000 |
commit | aeb2768a7c5b23260e6ca0826b844777b9948b6c (patch) | |
tree | e3afe9912796f77a9858e65f20eed0224558300b /mkspecs/features/ctest_testcase_common.prf | |
parent | 104e6d0f5427f5ebaab106b1651eb76c4c56df98 (diff) |
Introduce QMAKE_CD to enable us to cd from one Windows drive to another
On Windows cd does not change the drive. So when you are on drive C:
and type "cd D:\data" it will change the directory on drive D: but not
affect your current working directory.
To also change your drive you have to provide the parameter /d on
Windows, so "cd /d D:\data" will also change the drive.
Task-number: QTBUG-57080
Change-Id: Ib629879534523982eec693cef725f20a535a1a74
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'mkspecs/features/ctest_testcase_common.prf')
-rw-r--r-- | mkspecs/features/ctest_testcase_common.prf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/ctest_testcase_common.prf b/mkspecs/features/ctest_testcase_common.prf index af80fc00a1..8cdad77a78 100644 --- a/mkspecs/features/ctest_testcase_common.prf +++ b/mkspecs/features/ctest_testcase_common.prf @@ -86,7 +86,7 @@ for (MODULE_UNDER_TEST, CMAKE_QT_MODULES_UNDER_TEST) { CMAKE_MODULES_UNDER_TEST = $$join(CMAKE_MODULES_UNDER_TEST, ;) check.commands = \ - $(MKDIR) $$BUILD_DIR && cd $$BUILD_DIR && \ + $(MKDIR) $$BUILD_DIR && $$QMAKE_CD $$BUILD_DIR && \ cmake $$CMAKE_TEST_LOCATION $$CMAKE_GENERATOR \ -DCMAKE_C_COMPILER=$$QMAKE_CC \ -DCMAKE_CXX_COMPILER=$$QMAKE_CXX \ |