se BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
[blender-staging.git] / build_files / cmake / packaging.cmake
index d3864e2fc1b8947c52778d1c71c2c6d783d12ab0..0304cd372df6a6b00cc0336898a0231cea44ee42 100644 (file)
@@ -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