Commit c7503545 authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

revision number as variable in trunk

parent 4aa2411c
...@@ -392,17 +392,17 @@ list(REMOVE_DUPLICATES deb_add_dirs) ...@@ -392,17 +392,17 @@ list(REMOVE_DUPLICATES deb_add_dirs)
#PACKAGES #PACKAGES
#let cmake look for the svn-version #let cmake look for the svn-version
find_package(Subversion) if( NOT CurrentRevision )
if(Subversion_FOUND) find_package(Subversion)
Subversion_WC_INFO(${AMDiS_SOURCE_DIR} mtlSubinfo) if(Subversion_FOUND)
set(CurrentRevision ${mtlSubinfo_WC_REVISION}) Subversion_WC_INFO(${AMDiS_SOURCE_DIR} mtlSubinfo)
# message("current revision: ${mtlSubinfo_WC_REVISION}") set(CurrentRevision "0.9.${mtlSubinfo_WC_REVISION}")
else(Subversion_FOUND) # message("current revision: ${mtlSubinfo_WC_REVISION}")
set(CurrentRevision "0") endif(Subversion_FOUND)
endif(Subversion_FOUND) endif( NOT CurrentRevision )
set(CPACK_PACKAGE_NAME "AMDiS") set(CPACK_PACKAGE_NAME "AMDiS")
set(CPACK_PACKAGE_CONTACT "Andreas.Naumann@tu-dresden.de") set(CPACK_PACKAGE_CONTACT "Andreas.Naumann@tu-dresden.de")
set(CPACK_PACKAGE_VERSION "0.9.${CurrentRevision}") set(CPACK_PACKAGE_VERSION "${CurrentRevision}")
set(CPACK_GENERATOR "RPM" "DEB" "TGZ") set(CPACK_GENERATOR "RPM" "DEB" "TGZ")
set(CPACK_INSTALL_PREFIX "/usr/") set(CPACK_INSTALL_PREFIX "/usr/")
......
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