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 / MakeLibWin.cmake
index 866fe1d..cd3e5da 100644 (file)
@@ -14,24 +14,24 @@ if(ARCH_32_BITS)
     $ENV{PATH}
     PATH_SUFFIXES bin/ c/bin
     )
-else(ARCH_32_BITS)
+else()
   find_library(PATH_PTHREAD_LIB
     NAMES pthreadGC2-w64.dll
     HINTS
     $ENV{PATH}
     PATH_SUFFIXES bin/ c/bin
     )
-endif(ARCH_32_BITS)
+endif()
 
 set(GRAS_DEP "ws2_32 ${PATH_PTHREAD_LIB}")
 set(SIMGRID_DEP "ws2_32 ${PATH_PCRE_LIB} ${PATH_PTHREAD_LIB}")
 
 if(ARCH_32_BITS)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32 -march=i486")
-else(ARCH_32_BITS)
+else()
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
   #        message(FATAL_ERROR "Sorry, Simgrid fails with full 64bits for now! Please contact us.")
-endif(ARCH_32_BITS)
+endif()
 
 target_link_libraries(gras     ${GRAS_DEP})
 target_link_libraries(simgrid  ${SIMGRID_DEP})
@@ -41,7 +41,7 @@ message(STATUS "pexports: ${PEXPORTS_PATH}")
 if(PEXPORTS_PATH)
   add_custom_command(TARGET simgrid POST_BUILD
     COMMAND ${PEXPORTS_PATH}/pexports.exe ${CMAKE_BINARY_DIR}/lib/libsimgrid.dll > ${CMAKE_BINARY_DIR}/lib/libsimgrid.def)
-endif(PEXPORTS_PATH)
+endif()
 
 if(enable_smpi)
   add_library(smpi SHARED ${SMPI_SRC})
@@ -49,4 +49,4 @@ if(enable_smpi)
 
   set(SMPI_LDEP "")
   target_link_libraries(smpi   simgrid ${SMPI_LDEP})
-endif(enable_smpi)
\ No newline at end of file
+endif()
\ No newline at end of file