From 7d64988335beb37aedc891734932635a27cfd9cb Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 22 Jan 2019 16:35:51 +0100 Subject: [PATCH 1/1] Attempt to fix Python bindings on OS X. See https://github.com/pybind/pybind11/issues/1272. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 053c42fc59..8fbcead2e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") -- 2.20.1