From: Bruno Turcksin Date: Mon, 2 Apr 2018 21:01:42 +0000 (-0400) Subject: Call find_package(PythonInterp) before find_package(PythonLibs) X-Git-Tag: v9.0.0-rc1~227^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6299ea3c4e8b5b9756eaad6330aae18ac7433510;p=dealii.git Call find_package(PythonInterp) before find_package(PythonLibs) find_package(PythonInterp) should be called first to get the currently active Python version by default with a consistent version of PYTHON_LIBRARIES. --- diff --git a/contrib/python-bindings/source/CMakeLists.txt b/contrib/python-bindings/source/CMakeLists.txt index 8b9afeee78..ac4bd3ae11 100644 --- a/contrib/python-bindings/source/CMakeLists.txt +++ b/contrib/python-bindings/source/CMakeLists.txt @@ -17,8 +17,8 @@ # Find Python: # -INCLUDE(FindPythonLibs) INCLUDE(FindPythonInterp) +INCLUDE(FindPythonLibs) IF(FEATURE_BOOST_BUNDLED_CONFIGURED) MESSAGE(FATAL_ERROR