|
|
@ -250,12 +250,13 @@ endif()
|
|
|
|
# Packaging with CPack!
|
|
|
|
# Packaging with CPack!
|
|
|
|
SET(DFHACK_PACKAGE_SUFFIX "")
|
|
|
|
SET(DFHACK_PACKAGE_SUFFIX "")
|
|
|
|
IF(UNIX)
|
|
|
|
IF(UNIX)
|
|
|
|
|
|
|
|
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
|
|
|
|
|
|
|
|
string(STRIP ${GCC_VERSION} GCC_VERSION)
|
|
|
|
|
|
|
|
SET(DFHACK_PACKAGE_SUFFIX "-gcc-${GCC_VERSION}")
|
|
|
|
if(APPLE)
|
|
|
|
if(APPLE)
|
|
|
|
SET(CPACK_GENERATOR "ZIP;TBZ2")
|
|
|
|
SET(CPACK_GENERATOR "ZIP;TBZ2")
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
SET(CPACK_GENERATOR "TBZ2")
|
|
|
|
SET(CPACK_GENERATOR "TBZ2")
|
|
|
|
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
|
|
|
|
|
|
|
|
SET(DFHACK_PACKAGE_SUFFIX "-gcc-${GCC_VERSION}")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
ELSEIF(WIN32)
|
|
|
|
ELSEIF(WIN32)
|
|
|
|
SET(CPACK_GENERATOR "ZIP")
|
|
|
|
SET(CPACK_GENERATOR "ZIP")
|
|
|
|