bindings CHANGE find python interpreter first
... as advised by the CMake modules.
@@ -21,8 +21,8 @@ if(GEN_PYTHON_BINDINGS)
unset(PYTHON_EXECUTABLE CACHE)
unset(PYTHON_INCLUDE_DIR CACHE)
unset(PYTHON_LIBRARY_DEBUG CACHE)
+ find_package(PythonInterp 3)
find_package(PythonLibs 3)
- find_package(PythonInterp)
if(NOT PYTHONLIBS_FOUND)
message(FATAL_ERROR "Python 3 libraries not found!")
endif()
