diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2011-03-03 19:45:43 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2011-03-03 19:45:43 (GMT) |
commit | e4d4dfc6ef2cfaac34d8097da016f12a07113a3f (patch) | |
tree | b8e234729df246ec3dde6997a04b97f3be944a34 /Tests/CMakeLists.txt | |
parent | f72cc88c659d586cc65ac47e7807054345ccad89 (diff) | |
download | CMake-e4d4dfc6ef2cfaac34d8097da016f12a07113a3f.zip CMake-e4d4dfc6ef2cfaac34d8097da016f12a07113a3f.tar.gz CMake-e4d4dfc6ef2cfaac34d8097da016f12a07113a3f.tar.bz2 |
CPackRPM activate CPackRPM test on Linux systems where rpmbuild is found
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index f418058..b27477c 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -566,6 +566,12 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/ set(CPackRun_CPackCommand "-DCPackCommand=${CMAKE_CPACK_COMMAND}") # set up list of CPack generators list(APPEND GENLST "ZIP") + if (CMAKE_SYSTEM_NAME MATCHES "Linux") + find_program(RPMBUILD NAMES rpmbuild) + endif(CMAKE_SYSTEM_NAME MATCHES "Linux") + if (RPMBUILD) + list(APPEND GENLST "RPM") + endif(RPMBUILD) # set up list of component packaging ways list(APPEND CWAYLST "default") list(APPEND CWAYLST "OnePackPerGroup") |