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
5c2681d4
Commit
5c2681d4
authored
Mar 24, 2016
by
peastman
Browse files
Merge pull request #1432 from peastman/swig
Require SWIG 3.0.5 or later
parents
293d7c6b
06818d80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
wrappers/python/CMakeLists.txt
wrappers/python/CMakeLists.txt
+4
-11
No files found.
wrappers/python/CMakeLists.txt
View file @
5c2681d4
...
...
@@ -108,17 +108,10 @@ else(SWIG_EXECUTABLE)
set
(
SWIG_VERSION
"0.0.0"
CACHE STRING
"Swig version"
FORCE
)
endif
(
SWIG_EXECUTABLE
)
# Enforce swig version
if
(
PYTHON_VERSION_MAJOR EQUAL 3
)
string
(
COMPARE LESS
"
${
SWIG_VERSION
}
"
"2.0.4"
SWIG_VERSION_ERROR
)
if
(
SWIG_VERSION_ERROR
)
message
(
"Swig version must be 2.0.4 or greater for Python 3! (You have
${
SWIG_VERSION
}
)"
)
endif
(
SWIG_VERSION_ERROR
)
else
(
PYTHON_VERSION_MAJOR EQUAL 3
)
string
(
COMPARE LESS
"
${
SWIG_VERSION
}
"
"1.3.39"
SWIG_VERSION_ERROR
)
if
(
SWIG_VERSION_ERROR
)
message
(
"Swig version must be 1.3.39 or greater for Python 2! (You have
${
SWIG_VERSION
}
)"
)
endif
(
SWIG_VERSION_ERROR
)
endif
(
PYTHON_VERSION_MAJOR EQUAL 3
)
string
(
COMPARE LESS
"
${
SWIG_VERSION
}
"
"3.0.5"
SWIG_VERSION_ERROR
)
if
(
SWIG_VERSION_ERROR
)
message
(
"Swig version must be 3.0.5 or greater! (You have
${
SWIG_VERSION
}
)"
)
endif
(
SWIG_VERSION_ERROR
)
find_package
(
Doxygen REQUIRED
)
mark_as_advanced
(
CLEAR DOXYGEN_EXECUTABLE
)
...
...
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