Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Nektar
Nektar
Commits
f09441fa
Commit
f09441fa
authored
Apr 05, 2018
by
Jeremy Cohen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to Python version discovery.
parent
718afce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
CMakeLists.txt
+9
-2
No files found.
CMakeLists.txt
View file @
f09441fa
...
...
@@ -212,12 +212,19 @@ ENDIF()
# Add option to use Python 3.
CMAKE_DEPENDENT_OPTION
(
NEKTAR_USE_PYTHON3
"If true, prefer to use Python 3."
OFF
"NEKTAR_
USE
_PYTHON
3
"
OFF
)
"If true, prefer to use Python 3."
OFF
"NEKTAR_
BUILD
_PYTHON"
OFF
)
IF
(
NEKTAR_BUILD_PYTHON
)
# Unset any existing python executable/library settings so that
# we can rediscover correct python version if v2/3 settings changed
unset
(
PYTHON_EXECUTABLE CACHE
)
unset
(
PYTHON_INCLUDE_DIR CACHE
)
unset
(
PYTHON_LIBRARY CACHE
)
unset
(
PYTHON_LIBRARY_DEBUG CACHE
)
SET
(
PYTHONVER 2.7
)
IF
(
NEKTAR_USE_PYTHON3
)
SET
(
PYTHONVER 3
)
SET
(
PYTHONVER 3
.0
)
ENDIF
()
# Find Python
...
...
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