diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index f0d1072e..37af9824 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -37,7 +37,18 @@ if(${CMAKE_VERSION} VERSION_LESS "3.12.0") set(Python_INCLUDE_PATH ${PYTHON_INCLUDE_PATH}) set(Python_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}) else() + if(PYTHON_EXECUTABLE) + set(Python_EXECUTABLE ${PYTHON_EXECUTABLE}) + endif() + if (PYTHON_LIBRARY) + set(Python_LIBRARY ${PYTHON_LIBRARY}) + endif() + if (PYTHON_INCLUDE_DIR) + set(Python_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}) + endif() + message(STATUS "bin=${Python_EXECUTABLE} lib=${Python_LIBRARY} inc=${Python_INCLUDE_DIR}") find_package(Python COMPONENTS Interpreter Development) + message(STATUS "Python_EXECUTABLE ${Python_EXECUTABLE}") endif() FIND_PACKAGE(SWIG REQUIRED)