Skip to content
Snippets Groups Projects
Commit 008850c3 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : python found in cibuildwheel

parent be2e3903
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!116feat/release_pip
......@@ -9,7 +9,9 @@ function(generate_python_binding name target_to_bind)
)
# Use the New FindPython mode, recommanded. Requires CMake 3.15+
find_package(Python COMPONENTS Interpreter Development)
if ( NOT DEFINED PYTHON_EXECUTABLE OR NOT DEFINED PYTHON_INCLUDE_DIR OR NOT DEFINED PYTHON_LIBRARY )
find_package(Python 3.7 COMPONENTS Interpreter Development.Module REQUIRED)
endif()
FetchContent_MakeAvailable(PyBind11)
message(STATUS "Creating binding for module ${name}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment