X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ca98e73a2374c095eec8aa245db0b8075eb68511..3ed540f21221f7b9329b3978c2ee7b16f5139215:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 34d5caa427..edbe5aaa57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -396,7 +396,7 @@ endif() if(enable_smpi) SET(HAVE_SMPI 1) - if("${CMAKE_SYSTEM}" MATCHES "Darwin|FreeBSD|Linux") + if("${CMAKE_SYSTEM}" MATCHES "Darwin|FreeBSD|Linux|SunOS") SET(HAVE_PRIVATIZATION 1) else() message (STATUS "Warning: no support for SMPI automatic privatization on this platform") @@ -798,7 +798,10 @@ endif() if(enable_python) if(pybind11_FOUND) message(STATUS "Found pybind11, with C++14.") - pybind11_add_module(python-bindings src/bindings/python/simgrid_python.cpp) + if(NOT enable_lto) + set(pybind11_options NO_EXTRAS) + endif() + pybind11_add_module(python-bindings src/bindings/python/simgrid_python.cpp ${pybind11_options}) target_compile_features(python-bindings PRIVATE cxx_std_14) target_link_libraries(python-bindings PUBLIC simgrid) set_target_properties(python-bindings PROPERTIES