X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8c1171f84bdfac07290430a0462e91350c4553cf..c16407d4a40521a5adcb36356f356e2fb2161409:/buildtools/Cmake/MakeLib.cmake diff --git a/buildtools/Cmake/MakeLib.cmake b/buildtools/Cmake/MakeLib.cmake index 3e3e53816b..d28e29d14b 100644 --- a/buildtools/Cmake/MakeLib.cmake +++ b/buildtools/Cmake/MakeLib.cmake @@ -33,6 +33,7 @@ endif() # Compute the dependencies of SimGrid ##################################### set(SIMGRID_DEP "-lm") +set(SIMGRID_DEP "${SIMGRID_DEP} ${Boost_CONTEXT_LIBRARY}") if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT ${CMAKE_SYSTEM_VERSION} VERSION_LESS 10.0 @@ -55,10 +56,9 @@ else() set(SIMGRID_DEP "${SIMGRID_DEP} -lstdc++") endif() -if(pthread) - if(${CONTEXT_THREADS}) - SET(SIMGRID_DEP "${SIMGRID_DEP} -pthread") - endif() +if(pthread AND ${CONTEXT_THREADS} AND NOT APPLE) + # Clang on recent Mac OS X is not happy about -pthread. + SET(SIMGRID_DEP "${SIMGRID_DEP} -pthread") endif() if(HAVE_LUA)