We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b14707 + 96b5cd9 commit 6d2ace5Copy full SHA for 6d2ace5
CMakeLists.txt
@@ -60,8 +60,12 @@ else()
60
message(STATUS "Found pybind11: ${pybind11_INCLUDE_DIRS}/pybind11")
61
endif()
62
63
-# Look for NumPy headers
64
-find_package(Python REQUIRED COMPONENTS NumPy)
+# Look for NumPy headers, except if NUMPY_INCLUDE_DIRS is passed,
+# which is required under some circumstances (such as wasm, where
65
+# there is no real python executable)
66
+if(NOT NUMPY_INCLUDE_DIRS)
67
+ find_package(Python REQUIRED COMPONENTS NumPy)
68
+endif()
69
70
# Build
71
# =====
0 commit comments