Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96b5cd9

Browse files
committed
only search for numpy when the numpy-include directory is not passed
1 parent1b14707 commit96b5cd9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ else()
6060
message(STATUS"Found pybind11:${pybind11_INCLUDE_DIRS}/pybind11")
6161
endif()
6262

63-
# Look for NumPy headers
64-
find_package(PythonREQUIREDCOMPONENTSNumPy)
63+
# Look for NumPy headers, except if NUMPY_INCLUDE_DIRS is passed,
64+
# which is required under some circumstances (such as wasm, where
65+
# there is no real python executable)
66+
if(NOTNUMPY_INCLUDE_DIRS)
67+
find_package(PythonREQUIREDCOMPONENTSNumPy)
68+
endif()
6569

6670
# Build
6771
# =====

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp