Forward the CMAKE_PREFIX_PATH to invoked tests.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 29 Jun 2012 06:34:28 +0000 (08:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Jul 2012 23:08:30 +0000 (01:08 +0200)
Change-Id: I5166fb39dcf3ab660c971c4c68b714f534de40cb
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/corelib/Qt5CTestMacros.cmake

index c2772bb..a6d8adf 100644 (file)
@@ -8,7 +8,7 @@ macro(expect_pass _dir)
     "${CMAKE_CURRENT_BINARY_DIR}/${_dir}"
     --build-generator ${CMAKE_GENERATOR}
     --build-makeprogram ${CMAKE_MAKE_PROGRAM}
     "${CMAKE_CURRENT_BINARY_DIR}/${_dir}"
     --build-generator ${CMAKE_GENERATOR}
     --build-makeprogram ${CMAKE_MAKE_PROGRAM}
-    --build-options -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+    --build-options "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" "-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}"
   )
 endmacro()
 
   )
 endmacro()
 
@@ -39,6 +39,6 @@ macro(expect_fail _dir)
     "${CMAKE_CURRENT_BINARY_DIR}/failbuild/${_dir}/build"
     --build-generator ${CMAKE_GENERATOR}
     --build-makeprogram ${CMAKE_MAKE_PROGRAM}
     "${CMAKE_CURRENT_BINARY_DIR}/failbuild/${_dir}/build"
     --build-generator ${CMAKE_GENERATOR}
     --build-makeprogram ${CMAKE_MAKE_PROGRAM}
-    --build-options -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+    --build-options "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" "-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}"
   )
 endmacro()
   )
 endmacro()