From 6299ea3c4e8b5b9756eaad6330aae18ac7433510 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 2 Apr 2018 17:01:42 -0400 Subject: [PATCH] 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. --- contrib/python-bindings/source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5