mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Change 18625 on 2012/09/11 by magne@ResInsight_magne_RHE5
Decorate package name with either el5 or el6 when compiled on RHEL5/RHEL6
This commit is contained in:
parent
76cfde5ba6
commit
3f96c61c72
@ -93,7 +93,15 @@ include_directories(
|
||||
################################################################################
|
||||
# Installation settings
|
||||
################################################################################
|
||||
|
||||
set (RESINSIGHT_FINAL_NAME "ResInsight-${STRPRODUCTVER}")
|
||||
|
||||
# Append el5 when compiled on RHEL5 and el6 if compiled on RHEL6
|
||||
string(REGEX MATCH "el[5,6]?" RESINSIGHT_PLATFORM ${CMAKE_SYSTEM})
|
||||
if (NOT "${RESINSIGHT_PLATFORM}" STREQUAL "")
|
||||
set (RESINSIGHT_FINAL_NAME "${RESINSIGHT_FINAL_NAME}-${RESINSIGHT_PLATFORM}")
|
||||
endif()
|
||||
|
||||
set (RESINSIGHT_FINAL_INSTALL_PATH "/usr/${RESINSIGHT_FINAL_NAME}")
|
||||
|
||||
set (CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/Install/)
|
||||
@ -134,5 +142,9 @@ set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_PATCH_VERSION})
|
||||
|
||||
set(CPACK_PACKAGE_NAME "ResInsight-bin")
|
||||
|
||||
if (NOT "${RESINSIGHT_PLATFORM}" STREQUAL "")
|
||||
set (CPACK_SYSTEM_NAME "${RESINSIGHT_PLATFORM}")
|
||||
endif()
|
||||
|
||||
include (CPack)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user