Skip to content

Commit

Permalink
Enable pybind11-stubgen on macOS arm64 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Feb 27, 2024
1 parent c0a2310 commit fb6eede
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,8 @@ if(BUILD_PYTHON)
DESTINATION ${PY_DEST}
)

# pybind11-stubgen and pybind11_mkdoc support Linux and macOS x86_64 but not
# Windows or macOS arm64
if(
NOT (
WIN32
OR (APPLE AND ${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "arm64")
OR CMAKE_CROSSCOMPILING
)
)
# pybind11-stubgen and pybind11_mkdoc don't support Windows
if(NOT WIN32 AND NOT CMAKE_CROSSCOMPILING)
# pybind11-stubgen dependency
fetchcontent_declare(
pybind11-stubgen
Expand Down

0 comments on commit fb6eede

Please sign in to comment.