Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Set definitions with Darwin.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 Feb 2010 08:57:09 +0000 (08:57 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 Feb 2010 08:57:09 +0000 (08:57 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7095 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/CPACK/src/CMakeMakeExeLib.txt

index c26dbc0..69f83bf 100644 (file)
@@ -15,7 +15,9 @@ set(SIMGRID_DEP "")
 set(SMPI_DEP "")
 
 if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
-       add_definitions("-D_OPEN_SOURCE")
+       set(GRAS_DEP "pthread -D_OPEN_SOURCE")
+       set(SIMGRID_DEP "-D_OPEN_SOURCE")
+       set(SMPI_DEP "-D_OPEN_SOURCE")
 endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
 
 
@@ -43,9 +45,9 @@ endif(HAVE_GTNETS)
 #set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage")
 
 #add_definitions (-fprofile-arcs -ftest-coverage)
-target_link_libraries(simgrid ${SIMGRID_DEP} ${SIMGRID_DEP_GTNETS}-fprofile-arcs)
-target_link_libraries(gras ${GRAS_DEP} -fprofile-arcs)
-target_link_libraries(smpi ${SMPI_DEP} -fprofile-arcs)
+target_link_libraries(simgrid  ${SIMGRID_DEP} ${SIMGRID_DEP_GTNETS}-fprofile-arcs)
+target_link_libraries(gras     ${GRAS_DEP} -fprofile-arcs)
+target_link_libraries(smpi     ${SMPI_DEP} -fprofile-arcs)
 
 ### Make EXEs