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/FindPackageHandleAdvancedArgs.cmake

    r2613 r2624  
    77  IF("${_fail_msg}" STREQUAL "DEFAULT_MSG")
    88    SET(_fail_msg_adv "Could NOT find ${_name}")
    9   ELSE("${_fail_msg}" STREQUAL "DEFAULT_MSG")
     9  ELSE()
    1010    SET(_fail_msg_adv "${_fail_msg}")
    11   ENDIF("${_fail_msg}" STREQUAL "DEFAULT_MSG")
     11  ENDIF()
    1212  IF(${_name}_FIND_VERSION_EXACT)
    1313    SET(_fail_msg_adv "${_fail_msg_adv} (version requirements: exactly ${${_name}_FIND_VERSION}")
    14   ELSE(${_name}_FIND_VERSION_EXACT)
     14  ELSE()
    1515    SET(_fail_msg_adv "${_fail_msg_adv} (version requirements: at least ${${_name}_FIND_VERSION}")
    16   ENDIF(${_name}_FIND_VERSION_EXACT)
     16  ENDIF()
    1717  FIND_PACKAGE_HANDLE_STANDARD_ARGS("${_name}" "${_fail_msg_adv}" ${ARGN})
    1818  STRING(TOUPPER ${_name} _NAME_UPPER)
     
    3131                          "Your version is ${_version}")
    3232      SET(${_NAME_UPPER}_FOUND FALSE)
    33     ENDIF(${_name}_FIND_VERSION_EXACT AND NOT _compatible EQUAL 0)
     33    ENDIF()
    3434  ENDIF(${_name}_FIND_VERSION)
    3535
Note: See TracChangeset for help on using the changeset viewer.