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 / chrono / CMakeLists.txt
index 06d094b..218d24f 100644 (file)
@@ -21,10 +21,10 @@ add_custom_command(
 if(NOT WIN32)
   target_link_libraries(chrono_simulator simgrid pthread m )
   target_link_libraries(chrono_multiplier gras pthread m )
-else(NOT WIN32)
+else()
   target_link_libraries(chrono_simulator simgrid)
   target_link_libraries(chrono_multiplier gras)
-endif(NOT WIN32)
+endif()
 
 set(tesh_files
   ${tesh_files}