From 51962d0874d4e731ff6ed93dbe838d4d4fcec55c Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Mon, 13 Jan 2020 15:08:44 +0100 Subject: [PATCH] CMake: reorder Python detection PythonInterp should be detected before PythonLibs otherwise CMake exits with the following message: Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) Signed-off-by: Yegor Yefremov --- python/CMakeLists.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index fc1c3d1..5b6f420 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -14,8 +14,8 @@ else () set ( SWIG_FOUND TRUE ) endif () endif () -find_package ( PythonLibs REQUIRED ) find_package ( PythonInterp REQUIRED ) +find_package ( PythonLibs REQUIRED ) include ( UseSWIG ) include_directories ( BEFORE ${CMAKE_SOURCE_DIR}/src ) -- 1.7.1