Browse Source

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.
Domen Vrankar 9 years ago
parent
commit
70a2bfe97c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/RunCMake/CPack/CPackTestHelpers.cmake

+ 1 - 1
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()