Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use the right flag to get the pthread compilation schema
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 3 Nov 2011 16:53:13 +0000 (17:53 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 3 Nov 2011 16:53:13 +0000 (17:53 +0100)
buildtools/Cmake/MakeLib.cmake

index 6aa5649..04d3dfc 100644 (file)
@@ -28,7 +28,7 @@ add_dependencies(simgrid maintainer_files)
 
 # Compute the dependencies of GRAS
 ##################################
 
 # Compute the dependencies of GRAS
 ##################################
-set(GRAS_DEP "-lm -lpthread")
+set(GRAS_DEP "-lm -pthread")
 
 if(HAVE_POSIX_GETTIME)
        SET(GRAS_DEP "${GRAS_DEP} -lrt")
 
 if(HAVE_POSIX_GETTIME)
        SET(GRAS_DEP "${GRAS_DEP} -lrt")
@@ -51,7 +51,7 @@ set(SIMGRID_DEP "-lm -lpcre")
 
 if(pthread)
        if(${CONTEXT_THREADS})
 
 if(pthread)
        if(${CONTEXT_THREADS})
-               SET(SIMGRID_DEP "${SIMGRID_DEP} -lpthread")
+               SET(SIMGRID_DEP "${SIMGRID_DEP} -pthread")
        endif(${CONTEXT_THREADS})       
 endif(pthread)
 
        endif(${CONTEXT_THREADS})       
 endif(pthread)