Specify the --build-config when invoking ctest.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 21 Sep 2012 14:05:46 +0000 (16:05 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 16:01:05 +0000 (18:01 +0200)
commit3e9f27929004b7a5f44f14068b521e0d90c7b9c2
tree26a9ee6bac93a25c7294e79dfa6e72476a2260c4
parentf03ef8d8f45e898236a9b949cdfa41c89c6c6b76
Specify the --build-config when invoking ctest.

Otherwise we get strange build errors by attempting to build an
project in debug mode against a release-mode Qt:

http://testresults.qt-project.org/ci/QtBase_master_Integration/build_03955/win32-msvc2010_Windows_7/log.txt.gz

(grep for MSVCRTD)

The CMAKE_BUILD_TYPE variable is always specified by the ctest_testcase
driver as either Debug or Release.

Change-Id: Ia5af7f0c31550b92679a3190e07b4e5c4ea638c6
Reviewed-by: Brad King <brad.king@kitware.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/Qt5CTestMacros.cmake