Commit 2a208ee7 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

cmake: fix building RPM packages

Former-commit-id: 81e5a248
parent 411a4bc4
......@@ -7,6 +7,7 @@ set(CPACK_PACKAGE_VERSION_MINOR ${DPSIM_MINOR_VERSION})
set(CPACK_PACKAGE_VERSION_PATCH ${DPSIM_PATH_VERSION})
set(CPACK_RPM_PACKAGE_RELEASE ${DPSIM_RELEASE})
set(CPACK_RPM_PACKAGE_VERSION ${DPSIM_VERSION})
set(CPACK_RPM_PACKAGE_RELEASE ${DPSIM_RELEASE})
set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv3")
......@@ -20,6 +21,8 @@ set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CP
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING.md")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_GENERATOR "RPM;TGZ")
if(NOT CPACK_GENERATOR)
set(CPACK_GENERATOR "RPM;TGZ")
endif()
include(CPack)
......@@ -31,6 +31,7 @@ endif()
string(SUBSTRING ${GIT_HASH} 0 7 GIT_HASH_SHORT)
string(TIMESTAMP YMD "%Y%m%d")
set(DPSIM_VERSION 0.1.4)
set(DPSIM_RELEASE ${YMD}git${GIT_HASH_SHORT})
set(Python_ADDITIONAL_VERSIONS 3.5 3.6 3.7)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment