Skip to content
Snippets Groups Projects
Commit 09e5d782 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Set BORNAGAIN_USE_PYTHON3 to ON when python3 is the python found by cmake

parent 9bc1a1d4
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,11 @@ if(BORNAGAIN_PYTHON OR BORNAGAIN_GUI) ...@@ -60,6 +60,11 @@ if(BORNAGAIN_PYTHON OR BORNAGAIN_GUI)
endif() endif()
message(STATUS "Found Python libraries version ${PYTHONLIBS_VERSION_STRING} at ${PYTHON_LIBRARIES}; includes at ${PYTHON_INCLUDE_DIRS}") message(STATUS "Found Python libraries version ${PYTHONLIBS_VERSION_STRING} at ${PYTHON_LIBRARIES}; includes at ${PYTHON_INCLUDE_DIRS}")
if(PYTHONLIBS_VERSION_STRING MATCHES "^3.*$")
set(BORNAGAIN_USE_PYTHON3 ON)
message(STATUS "Python 3 will be used. Setting BORNAGAIN_USE_PYTHON3 to ${BORNAGAIN_USE_PYTHON3}.")
endif()
if(NOT WIN32) if(NOT WIN32)
include(ValidatePythonInstallation) include(ValidatePythonInstallation)
ValidatePythonInstallation() ValidatePythonInstallation()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment