Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A change in cmake 3.16 makes this syntax necessary.
authorAugustin Degomme <adegomme@gmail.com>
Thu, 21 Nov 2019 14:55:29 +0000 (15:55 +0100)
committerAugustin Degomme <adegomme@gmail.com>
Thu, 21 Nov 2019 14:55:29 +0000 (15:55 +0100)
Let's see if old cmakes (and osx) allow this.
ref https://gitlab.kitware.com/cmake/cmake/issues/19747

tools/cmake/MakeLib.cmake

index 480b934..3ddbb8e 100644 (file)
@@ -60,7 +60,7 @@ if (HAVE_BOOST_ADDR2LINE_BACKTRACE)
 endif()
 
 if(CMAKE_USE_PTHREADS_INIT)
-  set(SIMGRID_DEP "${SIMGRID_DEP} ${CMAKE_THREAD_LIBS_INIT}")
+  target_link_libraries(simgrid ${CMAKE_THREAD_LIBS_INIT})
 endif()
 
 if(SIMGRID_HAVE_LUA)