diff options
author | Jonathan Liu <net147@gmail.com> | 2013-01-10 00:07:48 +1100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-09 23:51:48 +0100 |
commit | 724cb5d30fda4b62cbc3fa5ab37da1b9c43dad6a (patch) | |
tree | 24e77f147756145c33649bba69e95c62b1b2982b /mkspecs | |
parent | fd372f3866acecf31f69992d6d99fc7c965018bb (diff) | |
download | qtbase-724cb5d30fda4b62cbc3fa5ab37da1b9c43dad6a.tar.gz qtbase-724cb5d30fda4b62cbc3fa5ab37da1b9c43dad6a.tar.bz2 qtbase-724cb5d30fda4b62cbc3fa5ab37da1b9c43dad6a.zip |
Support MinGW for CTest test cases
Change-Id: I581701f0b830292a21bc805da0398cbc96f82918
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/ctest_testcase.prf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkspecs/features/ctest_testcase.prf b/mkspecs/features/ctest_testcase.prf index 93ebd4607d..7f86ca0052 100644 --- a/mkspecs/features/ctest_testcase.prf +++ b/mkspecs/features/ctest_testcase.prf @@ -33,6 +33,7 @@ isEmpty(CMAKE_VERSION) { } else { CMAKE_BUILD_TYPE = Debug CONFIG(release, debug|release):CMAKE_BUILD_TYPE = Release + win32-g++*:CMAKE_GENERATOR = -G \"MinGW Makefiles\" BUILD_DIR = $$replace($$list($$OUT_PWD/build), /, $$QMAKE_DIR_SEP) @@ -42,7 +43,7 @@ isEmpty(CMAKE_VERSION) { check.commands = \ $(MKDIR) $$BUILD_DIR && cd $$BUILD_DIR && \ - cmake $$_PRO_FILE_PWD_ -DCMAKE_BUILD_TYPE=$${CMAKE_BUILD_TYPE} -DCMAKE_PREFIX_PATH=\"$$join(CMAKE_PREFIX_PATH, ;)\" && \ + cmake $$_PRO_FILE_PWD_ $$CMAKE_GENERATOR -DCMAKE_BUILD_TYPE=$${CMAKE_BUILD_TYPE} -DCMAKE_PREFIX_PATH=\"$$join(CMAKE_PREFIX_PATH, ;)\" && \ $(TESTRUNNER) ctest --output-on-failure } |