Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
pthread is not necessarily defined on windows
[simgrid.git] / buildtools / Cmake / MakeLib.cmake
index 2f46f6d..153ca35 100644 (file)
@@ -58,7 +58,7 @@ else()
   set(SIMGRID_DEP "${SIMGRID_DEP} -lstdc++")
 endif()
 
-if(pthread AND ${CONTEXT_THREADS} AND NOT APPLE)
+if(HAVE_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()