add_library(gras SHARED ${gras_sources})
add_library(smpi SHARED ${SMPI_SRC})
-set(GRAS_DEP "")
+set(GRAS_DEP "pthread")
set(SIMGRID_DEP "")
if(pthread)
SET(SIMGRID_DEP pthread)
SET(ESPACE " ")
endif(with_context MATCHES pthread)
-
+
if(with_context MATCHES windows)
- elseif(with_context MATCHES windows)
- SET(GRAS_DEP pthread)
+ SET(GRAS_DEP "")
endif(with_context MATCHES windows)
endif(pthread)
if(HAVE_LUA)
- SET(SIMGRID_DEP "${SIMGRID_DEP}${ESPACE}dl lua5.1")
+ SET(SIMGRID_DEP "${SIMGRID_DEP}${ESPACE}-ldl -llua5.1")
endif(HAVE_LUA)
if(HAVE_GTNETS)
set(CMAKE_CXX_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} pthread -fprofile-arcs)
+target_link_libraries(gras ${GRAS_DEP} -fprofile-arcs)
target_link_libraries(smpi -fprofile-arcs)
### Make EXEs
add_subdirectory(${PROJECT_DIRECTORY}/examples/simdag/dax)
add_subdirectory(${PROJECT_DIRECTORY}/examples/simdag/metaxml)
add_subdirectory(${PROJECT_DIRECTORY}/examples/simdag/properties)
- add_subdirectory(${PROJECT_DIRECTORY}/examples/smpi)
+ #add_subdirectory(${PROJECT_DIRECTORY}/examples/smpi)
if(HAVE_JAVA)
message("Make : src/simgrid.jar with : ${JAVA_COMPILE}")