Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do install sthread on user's disk
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 23 Oct 2023 19:28:20 +0000 (21:28 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 23 Oct 2023 19:28:20 +0000 (21:28 +0200)
tools/cmake/Distrib.cmake
tools/cmake/MakeLib.cmake

index 4f0c8c7..6a144b1 100644 (file)
@@ -43,6 +43,7 @@ add_custom_target(simgrid_convert_TI_traces ALL
 
 # libraries
 install(TARGETS simgrid DESTINATION ${CMAKE_INSTALL_LIBDIR}/)
+install(TARGETS sthread DESTINATION ${CMAKE_INSTALL_LIBDIR}/)
 
 # pkg-config files
 configure_file("${CMAKE_HOME_DIRECTORY}/tools/pkg-config/simgrid.pc.in"
index f41f3b7..e0357bf 100644 (file)
@@ -29,6 +29,7 @@ add_dependencies(simgrid maintainer_files)
 
 if("${CMAKE_SYSTEM}" MATCHES "Linux")
   add_library(sthread SHARED ${STHREAD_SRC})
+  set_target_properties(sthread PROPERTIES VERSION ${libsimgrid_version})
   set_property(TARGET sthread
                 APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")
   target_link_libraries(sthread simgrid)