Skip to content
Snippets Groups Projects
Commit 8db56085 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf
Browse files

Update swig requirement and add Python 3.8

parent 22a4d204
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ endif() ...@@ -53,7 +53,7 @@ endif()
if (NOT DEFINED Python_ADDITIONAL_VERSIONS) if (NOT DEFINED Python_ADDITIONAL_VERSIONS)
if (BORNAGAIN_USE_PYTHON3) if (BORNAGAIN_USE_PYTHON3)
set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4 3.3) set(Python_ADDITIONAL_VERSIONS 3.8 3.7 3.6 3.5 3.4 3.3)
else() else()
set(Python_ADDITIONAL_VERSIONS 2.7) set(Python_ADDITIONAL_VERSIONS 2.7)
endif() endif()
...@@ -84,7 +84,7 @@ endif() ...@@ -84,7 +84,7 @@ endif()
# --- Swig --- # --- Swig ---
if(BORNAGAIN_PYTHON AND BORNAGAIN_GENERATE_BINDINGS) if(BORNAGAIN_PYTHON AND BORNAGAIN_GENERATE_BINDINGS)
find_package(SWIG 3.0 REQUIRED) find_package(SWIG 4.0 REQUIRED)
include(${SWIG_USE_FILE}) include(${SWIG_USE_FILE})
message(STATUS "Found SWIG version ${SWIG_VERSION} at ${SWIG_EXECUTABLE} with flags '${SWIG_FLAGS}'; CMake definitions in ${SWIG_USE_FILE}") message(STATUS "Found SWIG version ${SWIG_VERSION} at ${SWIG_EXECUTABLE} with flags '${SWIG_FLAGS}'; CMake definitions in ${SWIG_USE_FILE}")
endif() endif()
......
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