Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2009, 12:48:20 PM (16 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/LibraryConfigMSVC.cmake

    r2623 r2624  
    2929# Set the library directories when using Visual Studio.   #
    3030
    31 IF (MSVC AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
     31IF(MSVC AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
    3232  MESSAGE(STATUS "Running on MSVC. Using customized paths and options.")
    3333
     
    3737  ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../lib_dist/vc8/dependencies/orxonox_vc8)
    3838    SET(MSVC_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../lib_dist/vc8/dependencies/orxonox_vc8")
    39   ELSE(EXISTS ${CMAKE_SOURCE_DIR}/dependencies/orxonox_vc8)
     39  ELSE()
    4040    MESSAGE(FATAL_ERROR "Could not find dependency directory for the Visual Studio libraries")
    41   ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/dependencies/orxonox_vc8)
     41  ENDIF()
    4242  SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${MSVC_LIBRARY_DIR}/bin)
    4343
     
    6060  SET(ZLIB_LIBRARY optimized ${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib.lib
    6161                   debug     ${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib_d.lib)
    62   IF ($ENV{DXSDK_DIR} STREQUAL "")
     62  IF($ENV{DXSDK_DIR} STREQUAL "")
    6363    SET(ENV{DXSDK_DIR}       ${MSVC_LIBRARY_DIR}/directx-sdk-aug-2007)
    64   ENDIF ($ENV{DXSDK_DIR} STREQUAL "")
     64  ENDIF()
    6565
    66 ENDIF (MSVC AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
     66ENDIF(MSVC AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
Note: See TracChangeset for help on using the changeset viewer.