diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2015-05-08 22:42:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-12 12:56:34 (GMT) |
commit | 7c103be8deb906a2c6036da6f25dd30928cc1a54 (patch) | |
tree | 693775abede19ae491cd8c152f3b5a7bfd416818 /Modules | |
parent | 6831f91a6c6d4f5d194c7a035c8de45f203f9cf8 (diff) | |
download | CMake-7c103be8deb906a2c6036da6f25dd30928cc1a54.zip CMake-7c103be8deb906a2c6036da6f25dd30928cc1a54.tar.gz CMake-7c103be8deb906a2c6036da6f25dd30928cc1a54.tar.bz2 |
CPack: Enable DEB and RPM tests more reliably
CPack DEB and RPM generators were not used for some tests because
CPACK_BINARY_DEB and CPACK_BINARY_RPM variable were not set. Fix this,
simplify generator selection in CTEST_RUN_CPackComponentsForAll, and fix
bugs that were detected after tests were run.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackRPM.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index e672e72..cb77fb8 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -1197,18 +1197,17 @@ function(cpack_rpm_generate_package) set(CPACK_RPM_COMPRESSION_TYPE_TMP "") endif() - if(CPACK_PACKAGE_RELOCATABLE) - set(CPACK_RPM_PACKAGE_RELOCATABLE TRUE) - endif() - if(CPACK_RPM_PACKAGE_RELOCATABLE) + if(CPACK_PACKAGE_RELOCATABLE OR CPACK_RPM_PACKAGE_RELOCATABLE) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Trying to build a relocatable package") endif() if(CPACK_SET_DESTDIR AND (NOT CPACK_SET_DESTDIR STREQUAL "I_ON")) message("CPackRPM:Warning: CPACK_SET_DESTDIR is set (=${CPACK_SET_DESTDIR}) while requesting a relocatable package (CPACK_RPM_PACKAGE_RELOCATABLE is set): this is not supported, the package won't be relocatable.") + set(CPACK_RPM_PACKAGE_RELOCATABLE FALSE) else() set(CPACK_RPM_PACKAGE_PREFIX ${CPACK_PACKAGING_INSTALL_PREFIX}) # kept for back compatibility (provided external RPM spec files) cpack_rpm_prepare_relocation_paths() + set(CPACK_RPM_PACKAGE_RELOCATABLE TRUE) endif() endif() |