From: Martin Quinson Date: Fri, 27 Oct 2023 01:45:45 +0000 (+0200) Subject: Fix non-Linux builds X-Git-Tag: v3.35~89^2~45 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d96de3f7d327fa93b2a17da67b1659587f24107b Fix non-Linux builds --- diff --git a/tools/cmake/Distrib.cmake b/tools/cmake/Distrib.cmake index 6a144b1ddf..50952960ff 100644 --- a/tools/cmake/Distrib.cmake +++ b/tools/cmake/Distrib.cmake @@ -43,7 +43,9 @@ add_custom_target(simgrid_convert_TI_traces ALL # libraries install(TARGETS simgrid DESTINATION ${CMAKE_INSTALL_LIBDIR}/) -install(TARGETS sthread DESTINATION ${CMAKE_INSTALL_LIBDIR}/) +if("${CMAKE_SYSTEM}" MATCHES "Linux") + install(TARGETS sthread DESTINATION ${CMAKE_INSTALL_LIBDIR}/) +endif() # pkg-config files configure_file("${CMAKE_HOME_DIRECTORY}/tools/pkg-config/simgrid.pc.in"