set(SMPI_DEP "")
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
- set(SIMGRID_DEP "-D_XOPEN_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")
if(pthread)
if(with_context MATCHES pthread)
- SET(SIMGRID_DEP pthread)
+ SET(SIMGRID_DEP ${SIMGRID_DEP}pthread)
SET(ESPACE " ")
endif(with_context MATCHES pthread)
#set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage")
#set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage")
-add_definitions (${INCLUDES} -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 -fprofile-arcs)
+#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)
### Make EXEs