Skip to content
Snippets Groups Projects
Commit 67424b0d authored by Daniel Savchenko's avatar Daniel Savchenko
Browse files

change find_package order

parent df270a01
No related branches found
No related tags found
2 merge requests!265Mac fix,!264Mac fix
...@@ -95,7 +95,6 @@ if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM) ...@@ -95,7 +95,6 @@ if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM)
endif() endif()
if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM) 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) if (NOT TARGET pybind11::module OR NOT TARGET pybind11::embed)
include(FetchContent) include(FetchContent)
...@@ -107,6 +106,8 @@ if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM) ...@@ -107,6 +106,8 @@ if (NOT DISABLE_OPENFLIPPER_PYTHON_SYSTEM)
set(FETCHCONTENT_FULLY_DISCONNECTED OFF) set(FETCHCONTENT_FULLY_DISCONNECTED OFF)
FetchContent_MakeAvailable(pybind11) FetchContent_MakeAvailable(pybind11)
endif() endif()
find_package(Python3 COMPONENTS Interpreter Development)
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment