Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
7644bc07
Commit
7644bc07
authored
May 20, 2013
by
Yutong Zhao
Browse files
Merge pull request #1 from proteneer/master
Remove SVN specific info from CMakeLists
parents
832e336c
faf5e0fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
29 deletions
+2
-29
CMakeLists.txt
CMakeLists.txt
+2
-29
No files found.
CMakeLists.txt
View file @
7644bc07
...
...
@@ -139,31 +139,6 @@ SET(OPENMM_COPYRIGHT_YEARS "2008")
# underbar separated list of dotted authors, no spaces or commas
SET
(
OPENMM_AUTHORS
"Peter.Eastman"
)
# Get the subversion revision number if we can
# It's possible that WIN32 installs use svnversion through cygwin
# so we'll try for both svnversion.exe and svnversion. Note that
# this will result in warnings if all you have is Tortoise without
# Cygwin, and your "about" string will say "unknown" rather than
# providing the SVN version of the source.
FIND_PROGRAM
(
SVNVERSION_PROGRAM svnversion
PATHS
"C:/cygwin/bin"
)
IF
(
SVNVERSION_PROGRAM
)
EXEC_PROGRAM
(
${
SVNVERSION_PROGRAM
}
ARGS \"
${
CMAKE_CURRENT_SOURCE_DIR
}
\"
OUTPUT_VARIABLE OPENMM_SVN_REVISION
)
ELSE
(
SVNVERSION_PROGRAM
)
MESSAGE
(
STATUS
"Could not find 'svnversion' executable; 'about' will be wrong. (Cygwin provides one on Windows.)"
)
SET
(
OPENMM_SVN_REVISION unknown
)
ENDIF
(
SVNVERSION_PROGRAM
)
# Remove colon from build version, for easier placement in directory names
STRING
(
REPLACE
":"
"_"
OPENMM_SVN_REVISION
${
OPENMM_SVN_REVISION
}
)
SET
(
OPENMM_SVN_REVISION
"
${
OPENMM_SVN_REVISION
}
"
CACHE STRING
"subversion repository revision of OpenMM"
FORCE
)
ADD_DEFINITIONS
(
-DOPENMM_LIBRARY_NAME=
${
OPENMM_LIBRARY_NAME
}
-DOPENMM_MAJOR_VERSION=
${
OPENMM_MAJOR_VERSION
}
-DOPENMM_MINOR_VERSION=
${
OPENMM_MINOR_VERSION
}
...
...
@@ -183,12 +158,10 @@ ENDIF (${CMAKE_GENERATOR} MATCHES "Visual Studio")
SET
(
NEED_QUOTES TRUE
)
IF
(
NEED_QUOTES
)
ADD_DEFINITIONS
(
-DOPENMM_SVN_REVISION=
"
${
OPENMM_SVN_REVISION
}
"
-DOPENMM_COPYRIGHT_YEARS=
"
${
OPENMM_COPYRIGHT_YEARS
}
"
ADD_DEFINITIONS
(
-DOPENMM_COPYRIGHT_YEARS=
"
${
OPENMM_COPYRIGHT_YEARS
}
"
-DOPENMM_AUTHORS=
"
${
OPENMM_AUTHORS
}
"
)
ELSE
(
NEED_QUOTES
)
ADD_DEFINITIONS
(
-DOPENMM_SVN_REVISION=
${
OPENMM_SVN_REVISION
}
-DOPENMM_COPYRIGHT_YEARS=
${
OPENMM_COPYRIGHT_YEARS
}
ADD_DEFINITIONS
(
-DOPENMM_COPYRIGHT_YEARS=
${
OPENMM_COPYRIGHT_YEARS
}
-DOPENMM_AUTHORS=
${
OPENMM_AUTHORS
}
)
ENDIF
(
NEED_QUOTES
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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