diff options
Diffstat (limited to 'Tests/RunCMake/CPack/tests/EMPTY_DIR/test.cmake')
-rw-r--r-- | Tests/RunCMake/CPack/tests/EMPTY_DIR/test.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/RunCMake/CPack/tests/EMPTY_DIR/test.cmake b/Tests/RunCMake/CPack/tests/EMPTY_DIR/test.cmake index e435ced..049c4a4 100644 --- a/Tests/RunCMake/CPack/tests/EMPTY_DIR/test.cmake +++ b/Tests/RunCMake/CPack/tests/EMPTY_DIR/test.cmake @@ -1,6 +1,13 @@ if(GENERATOR_TYPE STREQUAL "DEB") set(CPACK_PACKAGE_CONTACT "someone") - set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT") +endif() + +if(GENERATOR_TYPE STREQUAL "DEB" OR GENERATOR_TYPE STREQUAL "RPM") + if(GENERATOR_TYPE STREQUAL "DEB") + set(generator_type_suffix_ "IAN") # not entirely compatible... + endif() + + set(CPACK_${GENERATOR_TYPE}${generator_type_suffix_}_FILE_NAME "${GENERATOR_TYPE}-DEFAULT") endif() install(DIRECTORY DESTINATION empty |