Commit 731b2fd5 authored by Rohit Yadav's avatar Rohit Yadav

CMakeLists.txt: The tilde (~) in git version ptach leads the RPM build

to error, so remove that. Set ${PROJECT_DESCRIPTION} as cpack description
for RPM as the newline \n causes nuisance.
parent adfe0c81
......@@ -42,7 +42,7 @@ ELSE("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
COMMAND ${GIT} rev-parse --short HEAD
OUTPUT_VARIABLE GIT_OUT OUTPUT_STRIP_TRAILING_WHITESPACE
)
SET(PATCH_OUT "0~git-${GIT_OUT}")
SET(PATCH_OUT "0_git${GIT_OUT}")
ELSE(GIT)
SET(PATCH_OUT "0")
ENDIF(GIT)
......@@ -274,7 +274,7 @@ INCLUDE ( ${CMAKE_MODULE_PATH}/RpmBuild.cmake )
IF ( RPMBUILD_FOUND AND NOT WIN32 )
SET(CPACK_GENERATOR "RPM")
SET(CPACK_SET_DESTDIR TRUE)
SET(CPACK_RPM_PACKAGE_REQUIRES ${PACKAGE_REQUIRES})
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}")
ENDIF ( RPMBUILD_FOUND AND NOT WIN32 )
# Debian packages
......
Markdown is supported
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