We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 536d260 commit 2ec4c59Copy full SHA for 2ec4c59
CMakeLists.txt
@@ -49,6 +49,9 @@ endif()
49
50
include(GNUInstallDirs)
51
52
+# find Python before enabling pybind11
53
+find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
54
+
55
# Fetch pybind11
56
include(FetchContent)
57
FetchContent_Declare(
@@ -59,8 +62,6 @@ FetchContent_Declare(
59
62
)
60
63
FetchContent_MakeAvailable(pybind11)
61
64
-find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
-
65
set(CYTHON_FLAGS "-t -w \"${CMAKE_SOURCE_DIR}\"")
66
find_package(Cython REQUIRED)
67
0 commit comments