diff options
Diffstat (limited to 'build_files/cmake/packaging.cmake')
-rw-r--r-- | build_files/cmake/packaging.cmake | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/build_files/cmake/packaging.cmake b/build_files/cmake/packaging.cmake index d3864e2fc1b..0304cd372df 100644 --- a/build_files/cmake/packaging.cmake +++ b/build_files/cmake/packaging.cmake @@ -33,14 +33,16 @@ set(BUILD_REV ${MY_WC_REVISION}) # Force Package Name set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${BLENDER_VERSION}-r${BUILD_REV}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}) -# RPM packages -include(build_files/cmake/RpmBuild.cmake) -if(RPMBUILD_FOUND AND NOT WIN32) - set(CPACK_GENERATOR "RPM") - set(CPACK_SET_DESTDIR TRUE) - set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}") - set(CPACK_RPM_PACKAGE_LICENSE "GPLv2") - set(CPACK_RPM_PACKAGE_GROUP "Amusements/Graphics") +if(CMAKE_SYSTEM_NAME MATCHES "Linux") + # RPM packages + include(build_files/cmake/RpmBuild.cmake) + if(RPMBUILD_FOUND AND NOT WIN32) + set(CPACK_GENERATOR "RPM") + set(CPACK_SET_DESTDIR TRUE) + set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}") + set(CPACK_RPM_PACKAGE_LICENSE "GPLv2") + set(CPACK_RPM_PACKAGE_GROUP "Amusements/Graphics") + endif() endif() # Mac Bundle |