diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index dd85f15a53300d36feaaedbe448343cfc681eaa9..48e4b76a4f6364620a3eec971f05c372bc9381a4 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -95,7 +95,6 @@ if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM) endif() if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM) - find_package(Python3 3.9 COMPONENTS Interpreter Development PATHS "C:/Program Files/Python39/") if (NOT TARGET pybind11::module OR NOT TARGET pybind11::embed) include(FetchContent) @@ -107,6 +106,8 @@ if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM) set(FETCHCONTENT_FULLY_DISCONNECTED OFF) FetchContent_MakeAvailable(pybind11) endif() + + find_package(Python3 COMPONENTS Interpreter Development) endif()