Build the tests with the build type that the top-level was invoked with.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 20 Apr 2012 17:46:20 +0000 (19:46 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Apr 2012 20:23:23 +0000 (22:23 +0200)
Change-Id: I87918276987b3a506c2ac8556940fce89a2d20cd
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
tests/manual/cmake/CMakeLists.txt

index 2aee64f..fdcf2b7 100644 (file)
@@ -43,6 +43,7 @@ macro(expect_pass _dir)
     "${CMAKE_CURRENT_BINARY_DIR}/${_dir}"
     --build-generator ${CMAKE_GENERATOR}
     --build-makeprogram ${CMAKE_MAKE_PROGRAM}
+    --build-options -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
   )
 endmacro()
 
@@ -73,6 +74,7 @@ macro(expect_fail _dir)
     "${CMAKE_CURRENT_BINARY_DIR}/failbuild/${_dir}/build"
     --build-generator ${CMAKE_GENERATOR}
     --build-makeprogram ${CMAKE_MAKE_PROGRAM}
+    --build-options -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
   )
 endmacro()