Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2009, 12:48:20 PM (15 years ago)
Author:
rgrieder
Message:

Replaced most of the ELSE(…) and ENDIF(…) with ELSE() and ENDIF(). Kept the shorter and the spreaded ones for better clarity since that's what it originally was thought for. But I can really pollute the code when having long conditions and lots of IFs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/FindENet.cmake

    r2616 r2624  
    4242  ELSEIF(_enet_header MATCHES "enet_peer_disconnect_later")
    4343    SET(ENET_VERSION 1.1)
    44   ELSE(_enet_header MATCHES "enet_socket_set_option")
     44  ELSE()
    4545    SET(ENET_VERSION 1.0)
    46   ENDIF(_enet_header MATCHES "enet_socket_set_option")
    47 ELSE(_enet_header MATCHES "ENET_VERSION[ \t]*=[ \t]*1")
     46  ENDIF()
     47ELSE()
    4848  SET(ENET_VERSION 0) # Script doesn't support versions below 1.0
    49 ENDIF(_enet_header MATCHES "ENET_VERSION[ \t]*=[ \t]*1")
     49ENDIF()
    5050
    5151# Handle the REQUIRED argument and set ENET_FOUND
     
    6060  # ENet is linked statically, hence we need to add some windows dependencies
    6161  HANDLE_LIBRARY_TYPES(ENET ws2_32 winmm)
    62 ELSE(NOT LINK_ENET_DYNAMIC AND WIN32)
     62ELSE()
    6363  HANDLE_LIBRARY_TYPES(ENET)
    64 ENDIF(NOT LINK_ENET_DYNAMIC AND WIN32)
     64ENDIF()
    6565
    6666MARK_AS_ADVANCED(
Note: See TracChangeset for help on using the changeset viewer.