Skip to content

Commit

Permalink
Update Python CMake file for OpenBSD (#4266)
Browse files Browse the repository at this point in the history
This commit ensures the `SWIGWORDSIZENN` defines are not set when
building on OpenBSD.
  • Loading branch information
ron-at-swgy authored and Mizux committed Jun 11, 2024
1 parent 27fbd6f commit 846eea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(${SWIG_VERSION} VERSION_GREATER_EQUAL 4)
list(APPEND CMAKE_SWIG_FLAGS "-doxygen")
endif()

if(UNIX AND NOT APPLE)
if(UNIX AND NOT APPLE AND NOT (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD"))
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
list(APPEND CMAKE_SWIG_FLAGS "-DSWIGWORDSIZE64")
else()
Expand Down

0 comments on commit 846eea7

Please sign in to comment.