Skip to content

Commit

Permalink
Fix macos error
Browse files Browse the repository at this point in the history
- Closes google#398

Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
  • Loading branch information
andyneff committed Dec 3, 2024
1 parent 778502a commit 4758c71
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ if (WITH_PYTHON)
find_package(SWIG 4.0)
# Use Python3_ROOT_DIR to help find python3, if the correct location is not
# being found by default.
find_package(Python3 COMPONENTS Interpreter Development.Module)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Workaround for issue https://github.com/google/s2geometry/issues/398
# Macos requires libpython3.13.dylib and does not get it with .Module
find_package(Python3 COMPONENTS Interpreter Development)
else()
find_package(Python3 COMPONENTS Interpreter Development.Module)
endif()
endif()

if (MSVC)
Expand Down

0 comments on commit 4758c71

Please sign in to comment.