We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ca7196 commit 1d9ca41Copy full SHA for 1d9ca41
src/lib/python/CMakeLists.txt
@@ -28,6 +28,15 @@ swig_add_library(${PS_TARGET}
28
LANGUAGE python
29
OUTPUT_DIR ${PYTHON_PROJECT_DIR}
30
SOURCES pokerstove.i)
31
+add_library(${PROJECT_NAMESPACE}::${PS_TARGET} ALIAS ${PS_TARGET})
32
+
33
+# note: macOS is APPLE and also UNIX !
34
+if(APPLE)
35
+ set_property(TARGET ${PS_TARGET} APPEND PROPERTY
36
+ LINK_FLAGS "-flat_namespace -undefined suppress"
37
+ )
38
+endif()
39
40
41
# This is done to ensure that the .py wrapper and the .so file are in the
42
# same location so that a properly set PYTHONPATH will pick them up.
0 commit comments