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] / buildtools / Cmake / Modules / FindSimGrid.cmake
index d29da73..67994c7 100644 (file)
@@ -74,21 +74,21 @@ if(HAVE_SIMGRID_LIB)
   string(REGEX REPLACE "^${SIMGRID_MINOR_VERSION}." "" SIMGRID_PATCH_VERSION "${SIMGRID_PATCH_VERSION}")
   string(REGEX REPLACE "^${SIMGRID_MAJOR_VERSION}." "" SIMGRID_MINOR_VERSION "${SIMGRID_MINOR_VERSION}")
   message(STATUS "Simgrid version : ${SIMGRID_MAJOR_VERSION}.${SIMGRID_MINOR_VERSION}")
-else(HAVE_SIMGRID_LIB)
+else()
   message(STATUS "Looking for lib SimGrid - not found")
-endif(HAVE_SIMGRID_LIB)
+endif()
 
 message(STATUS "Looking for gras.h")
 if(HAVE_GRAS_H)
   message(STATUS "Looking for gras.h - found")
-else(HAVE_GRAS_H)
+else()
   message(STATUS "Looking for gras.h - not found")
-endif(HAVE_GRAS_H)
+endif()
 
 if(HAVE_TESH)
   message(STATUS "Found Tesh: ${HAVE_TESH}")
-endif(HAVE_TESH)
+endif()
 
 if(HAVE_GRAS_STUB)
   message(STATUS "Found gras_stub_generator: ${HAVE_GRAS_STUB}")
-endif(HAVE_GRAS_STUB)
\ No newline at end of file
+endif()
\ No newline at end of file