X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9dde0b9bb9032fdea9a8caa97b5fec79f9ca280..c92750f8a959db138a12e826f3a07e99667e8459:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d45268ef6..e128cfc3d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -854,7 +854,15 @@ if(enable_python) target_link_libraries(python-bindings PUBLIC simgrid) set_target_properties(python-bindings PROPERTIES LIBRARY_OUTPUT_NAME simgrid - CXX_VISIBILITY_PRESET "default") + CXX_VISIBILITY_PRESET "default" + INTERPROCEDURAL_OPTIMIZATION FALSE) + # LTO is disabled here from the python bindings because this makes a + # cmake warning about CMP0069 even when this policy is set. This + # problem may be in cmake, in pybind11 or even in our code, not sure. + # It may get eventually solved in cmake or pybind11. Or not. + # The sure thing is that our python bindings are in one file only, + # so there is no need for LTO here. Problem solved :) + add_dependencies(tests python-bindings) set_property(TARGET python-bindings APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")