summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/CPackTestHelpers.cmake
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2016-11-10 23:26:19 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2016-11-27 22:20:34 (GMT)
commit70a2bfe97c1b024bff5fa6b6537528457ca5a7f4 (patch)
tree243295d354765c5e865ed110cc9c57bd8bf37f9d /Tests/RunCMake/CPack/CPackTestHelpers.cmake
parenta15f51620ba0142e05cfa6aebd346a5cf76ca302 (diff)
downloadCMake-70a2bfe97c1b024bff5fa6b6537528457ca5a7f4.zip
CMake-70a2bfe97c1b024bff5fa6b6537528457ca5a7f4.tar.gz
CMake-70a2bfe97c1b024bff5fa6b6537528457ca5a7f4.tar.bz2
Tests: fix CPack test source packages missing generator type
Source packages testing for RunCMake CPack tests did not provide generator type to the project built from source package.
Diffstat (limited to 'Tests/RunCMake/CPack/CPackTestHelpers.cmake')
-rw-r--r--Tests/RunCMake/CPack/CPackTestHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CPack/CPackTestHelpers.cmake b/Tests/RunCMake/CPack/CPackTestHelpers.cmake
index 7cf44ed..672fff0 100644
--- a/Tests/RunCMake/CPack/CPackTestHelpers.cmake
+++ b/Tests/RunCMake/CPack/CPackTestHelpers.cmake
@@ -42,7 +42,7 @@ function(run_cpack_test_common_ TEST_NAME types build SUBTEST_SUFFIX source)
if(source)
set(pack_params_ -G ${TEST_TYPE} --config ./CPackSourceConfig.cmake)
FILE(APPEND ${RunCMake_TEST_BINARY_DIR}/CPackSourceConfig.cmake
- "\nset(CPACK_RPM_SOURCE_PKG_BUILD_PARAMS \"-DRunCMake_TEST:STRING=${full_test_name_}\ -DRunCMake_TEST_FILE_PREFIX:STRING=${TEST_NAME}\")")
+ "\nset(CPACK_RPM_SOURCE_PKG_BUILD_PARAMS \"-DRunCMake_TEST:STRING=${full_test_name_}\ -DRunCMake_TEST_FILE_PREFIX:STRING=${TEST_NAME} -DGENERATOR_TYPE=${TEST_TYPE}\")")
else()
unset(pack_params_)
endif()