Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use the right flag to get the pthread compilation schema
[simgrid.git] / buildtools / Cmake / MakeLib.cmake
index b6de4e9..04d3dfc 100644 (file)
@@ -28,7 +28,7 @@ add_dependencies(simgrid maintainer_files)
 
 # 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")
@@ -51,7 +51,7 @@ set(SIMGRID_DEP "-lm -lpcre")
 
 if(pthread)
        if(${CONTEXT_THREADS})
-               SET(SIMGRID_DEP "${SIMGRID_DEP} -lpthread")
+               SET(SIMGRID_DEP "${SIMGRID_DEP} -pthread")
        endif(${CONTEXT_THREADS})       
 endif(pthread)
 
@@ -101,7 +101,7 @@ if(HAVE_NS3)
            set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_NS3_3_10")
            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_NS3_3_10")
        else(${NS3_VERSION} EQUAL 310)
-           SET(SIMGRID_DEP "${SIMGRID_DEP} -lns3-core -lns3-csma -lns3-point-to-point")
+           SET(SIMGRID_DEP "${SIMGRID_DEP} -lns3-core -lns3-csma -lns3-point-to-point -lns3-internet -lns3-applications")
        endif(${NS3_VERSION} EQUAL 310)
 endif(HAVE_NS3)