Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Attempt to fix Python bindings on OS X.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 22 Jan 2019 15:35:51 +0000 (16:35 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 22 Jan 2019 15:35:51 +0000 (16:35 +0100)
See https://github.com/pybind/pybind11/issues/1272.

CMakeLists.txt

index 053c42f..8fbcead 100644 (file)
@@ -800,7 +800,9 @@ if(enable_python)
     pybind11_add_module(python-bindings src/bindings/python/simgrid_python.cpp)
     target_compile_features(python-bindings PRIVATE cxx_std_14)
     target_link_libraries(python-bindings PUBLIC simgrid)
-    set_target_properties(python-bindings PROPERTIES LIBRARY_OUTPUT_NAME simgrid)
+    set_target_properties(python-bindings PROPERTIES
+                          LIBRARY_OUTPUT_NAME simgrid
+                          CXX_VISIBILITY_PRESET "default")
     add_dependencies(tests python-bindings)
     set_property(TARGET python-bindings
                  APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")