Skip to content

Commit

Permalink
Merge pull request #13631 from CorbinFoucart/python3_binding_cmake_bu…
Browse files Browse the repository at this point in the history
…ild_fix
  • Loading branch information
Rombur committed May 11, 2022
2 parents 87f709d + 3c0a6bb commit 29c7743
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion contrib/python-bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ IF(DEAL_II_COMPONENT_PYTHON_BINDINGS)
#
# Find Python:
#
INCLUDE(FindPythonInterp)
# Since CMake 3.12, FindPythonInterp is deprecated.
if (CMAKE_VERSION VERSION_LESS 3.12)
INCLUDE(FindPythonInterp)
else()
FIND_PACKAGE(Python3)
set(PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR})
set(PYTHON_VERSION_MINOR ${Python3_VERSION_MINOR})
endif()
INCLUDE(FindPythonLibs)

IF(FEATURE_BOOST_BUNDLED_CONFIGURED)
Expand Down

0 comments on commit 29c7743

Please sign in to comment.