From c131c82be349b63e6fe7b695d0c0e06c48471830 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sat, 16 Nov 2019 23:52:36 -0500 Subject: [PATCH] Reverse order of Python detection Detecting PythonLibs before PythonInterp can cause a non-default Python library to be picked up, which then won't match the PythonInterp version (which always matches the version of the `python3` command). --- src/bindings/python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index eb860751..21405f63 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -37,8 +37,8 @@ if (POLICY CMP0086) cmake_policy(SET CMP0086 OLD) endif() -FIND_PACKAGE(PythonLibs 3) FIND_PACKAGE(PythonInterp 3) +FIND_PACKAGE(PythonLibs 3) if (PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND) ### Include Python header files