Fix unit tests when CMAKE_PREFIX_PATH env var is not set.
authorStephen Kelly <stephen.kelly@kdab.com>
Tue, 10 Jul 2012 15:56:54 +0000 (17:56 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 10:46:15 +0000 (12:46 +0200)
commit78203ccf8047151fd12a39816b2e15e210414388
tree07609cb4048362002ece77a44a8f83274ec91609
parent27cefd85f3e70b4d5e31261710e4361814c742dd
Fix unit tests when CMAKE_PREFIX_PATH env var is not set.

Tests which are expected to not build need to get a way to find the
Qt 5 config packages. Because they use try_compile, there is no way
to pass the contents to it.

Work around that by generating a file containing the prefix which
the tests will include.

Change-Id: If43080c241539e4af5fe1c183e7da72066278b73
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/corelib/Qt5CTestMacros.cmake
tests/auto/cmake/test_add_resource_options/CMakeLists.txt
tests/auto/cmake/test_wrap_cpp_options/CMakeLists.txt