Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Since cmake 2.6, else() and endif() don't need to repeat the condition.
[simgrid.git] / examples / gras / timer / CMakeLists.txt
index 86c42b7..e41e5c5 100644 (file)
@@ -22,10 +22,10 @@ add_custom_command(
 if(NOT WIN32)
   target_link_libraries(timer_simulator simgrid pthread m )
   target_link_libraries(timer_client gras pthread m )
-else(NOT WIN32)
+else()
   target_link_libraries(timer_simulator simgrid)
   target_link_libraries(timer_client gras)
-endif(NOT WIN32)
+endif()
 
 set(tesh_files
   ${tesh_files}