diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-07 06:57:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-07 06:57:04 +0300 |
commit | e7bf671e250a2129e289339e66624089b5e84944 (patch) | |
tree | 7c89104b4379918daff85239ab3e994875fe24b7 /build_files | |
parent | e1649ecda9d7f00bf14f680b972fd96905662992 (diff) |
se BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
also on only try build RPM's on linux.
Diffstat (limited to 'build_files')
-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 |