Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
c7503545
Commit
c7503545
authored
May 01, 2011
by
Naumann, Andreas
Browse files
revision number as variable in trunk
parent
4aa2411c
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/CMakeLists.txt
View file @
c7503545
...
...
@@ -392,17 +392,17 @@ list(REMOVE_DUPLICATES deb_add_dirs)
#PACKAGES
#let cmake look for the svn-version
find_package
(
Subver
sion
)
if
(
Subversion
_FOUND
)
Subversion_
WC_INFO
(
${
AMDiS_SOURCE_DIR
}
mtlSubinfo
)
set
(
CurrentRevision
${
mtlSubinfo_WC_REVISION
}
)
# message("c
urrent
r
evision
:
${mtlSubinfo_WC_REVISION}")
else
(
Subversion_FOUND
)
set
(
CurrentRevision
"0"
)
endif
(
Subversion_FOUND
)
if
(
NOT CurrentRevi
sion
)
find_package
(
Subversion
)
if
(
Subversion_
FOUND
)
Subversion_WC_INFO
(
${
AMDiS_SOURCE_DIR
}
mtlSubinfo
)
set
(
C
urrent
R
evision
"0.9.
${
mtlSubinfo_WC_REVISION
}
"
)
# message("current revision: ${mtlSubinfo_WC_REVISION}"
)
endif
(
Subversion_FOUND
)
endif
(
NOT CurrentRevision
)
set
(
CPACK_PACKAGE_NAME
"AMDiS"
)
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_INSTALL_PREFIX
"/usr/"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment