|
|
@@ -122,20 +122,24 @@ elseif (CPACK_SYSTEM_NAME STREQUAL Linux)
|
|
|
set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
|
|
|
set (CPACK_RPM_PACKAGE_ARCHITECTURE i686) # The 'package' target should be built with the help of 'setarch i686' command on a 64-bit host system
|
|
|
endif ()
|
|
|
- if (NOT URHO3D_64BIT OR HAS_LIB64)
|
|
|
- list (APPEND CPACK_GENERATOR RPM)
|
|
|
- endif ()
|
|
|
- if (NOT URHO3D_64BIT OR NOT HAS_LIB64)
|
|
|
- list (APPEND CPACK_GENERATOR DEB)
|
|
|
- endif ()
|
|
|
- if (URHO3D_64BIT)
|
|
|
- if (URHO3D_USE_LIB64_RPM AND NOT HAS_LIB64)
|
|
|
- set (CPACK_GENERATOR RPM)
|
|
|
- elseif (URHO3D_USE_LIB_DEB AND HAS_LIB64)
|
|
|
- set (CPACK_GENERATOR DEB)
|
|
|
+ # TODO: Temporary disable RPM and DEB package generation for CI as it has run out of disk space for a few of the target platforms.
|
|
|
+ if (NOT DEFINED ENV{CI})
|
|
|
+ if (NOT URHO3D_64BIT OR HAS_LIB64)
|
|
|
+ list (APPEND CPACK_GENERATOR RPM)
|
|
|
+ endif ()
|
|
|
+ if (NOT URHO3D_64BIT OR NOT HAS_LIB64)
|
|
|
+ list (APPEND CPACK_GENERATOR DEB)
|
|
|
+ endif ()
|
|
|
+ if (URHO3D_64BIT)
|
|
|
+ if (URHO3D_USE_LIB64_RPM AND NOT HAS_LIB64)
|
|
|
+ set (CPACK_GENERATOR RPM)
|
|
|
+ elseif (URHO3D_USE_LIB_DEB AND HAS_LIB64)
|
|
|
+ set (CPACK_GENERATOR DEB)
|
|
|
+ endif ()
|
|
|
endif ()
|
|
|
endif ()
|
|
|
# Note to package maintainer: comment out below line to revert the prefix from '/usr/local' (default for CMAKE_INSTALL_PREFIX) to '/usr' (default for CPACK_PACKAGING_INSTALL_PREFIX)
|
|
|
+ # Revisit this later, some users insist it should be '/usr' (see https://github.com/urho3d/Urho3D/issues/2166), even though clearly we are not trying to build "system package" here
|
|
|
set (CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
|
|
endif ()
|
|
|
if (URHO3D_64BIT)
|