Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update CMakeLists for windows
[simgrid.git] / examples / gras / spawn / CMakeLists.txt
index 9b1bbc4..de6047e 100644 (file)
@@ -28,9 +28,16 @@ add_custom_command(
                                        )
                                        
 ### Add definitions for compile
-target_link_libraries(spawn_simulator simgrid pthread m -fprofile-arcs)
-target_link_libraries(spawn_child gras pthread m -fprofile-arcs)
-target_link_libraries(spawn_father gras pthread m -fprofile-arcs)
+if(NOT WIN32)
+target_link_libraries(spawn_simulator simgrid pthread m )
+target_link_libraries(spawn_child gras pthread m )
+target_link_libraries(spawn_father gras pthread m )
+else(NOT WIN32)
+target_link_libraries(spawn_simulator simgrid)
+target_link_libraries(spawn_child gras)
+target_link_libraries(spawn_father gras)
+endif(NOT WIN32)
+