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 / FindRngStream.cmake
index c057c27..33e6429 100644 (file)
@@ -30,10 +30,10 @@ if(HAVE_RNGSTREAM_H)
   string(REGEX MATCH "-I${HAVE_RNGSTREAM_H} " operation "${CMAKE_C_FLAGS}")
   if(NOT operation)
     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${HAVE_RNGSTREAM_H} ")
-  endif(NOT operation)
-else(HAVE_RNGSTREAM_H)
+  endif()
+else()
   message(STATUS "Looking for RngStream.h - not found")
-endif(HAVE_RNGSTREAM_H)
+endif()
 
 message(STATUS "Looking for lib rngstreams")
 if(HAVE_RNGSTREAM_LIB)
@@ -42,10 +42,10 @@ if(HAVE_RNGSTREAM_LIB)
   string(REGEX MATCH "-L${HAVE_RNGSTREAM_LIB} " operation "${CMAKE_C_FLAGS}")
   if(NOT operation)
     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${HAVE_RNGSTREAM_LIB} ")
-  endif(NOT operation)
-else(HAVE_RNGSTREAM_LIB)
+  endif()
+else()
   message(STATUS "Looking for lib rngstreams - not found")
-endif(HAVE_RNGSTREAM_LIB)
+endif()
 
 mark_as_advanced(HAVE_RNGSTREAM_LIB)
 mark_as_advanced(HAVE_RNGSTREAM_H)
\ No newline at end of file