Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 13, 2008, 9:32:44 PM (16 years ago)
Author:
landauf
Message:

Many changes in almost all FindXYZ.cmake files. They now throw errors if something wasn't found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/FindCEGUI_OGRE.cmake

    r1505 r1776  
    1515#
    1616# Redistribution and use is allowed according to the terms of the BSD license.
     17#
     18# Several changes and additions by Fabian 'x3n' Landau
     19#                 > www.orxonox.net <
    1720
    18 IF (CEGUI_OGRE_LIBRARIES AND CEGUI_OGRE_INCLUDE_DIR)
     21IF (CEGUI_OGRE_LIBRARIES AND CEGUI_OGRE_INCLUDE_DIR AND CEGUI_OGRE_LIB_DIR)
    1922    SET(CEGUI_OGRE_FIND_QUIETLY TRUE) # Already in cache, be silent
    20 ENDIF (CEGUI_OGRE_LIBRARIES AND CEGUI_OGRE_INCLUDE_DIR)
     23ENDIF (CEGUI_OGRE_LIBRARIES AND CEGUI_OGRE_INCLUDE_DIR AND CEGUI_OGRE_LIB_DIR)
    2124
    2225IF (WIN32) #Windows
     
    4144SET(CEGUI_OGRE_LIB_DIR ${CEGUI_OGRE_LIB_DIR} CACHE PATH "")
    4245
    43 IF (CEGUI_OGRE_INCLUDE_DIR AND CEGUI_OGRE_LIBRARIES)
     46IF (CEGUI_OGRE_INCLUDE_DIR AND CEGUI_OGRE_LIBRARIES AND CEGUI_OGRE_LIB_DIR)
    4447    SET(CEGUI_OGRE_FOUND TRUE)
    45 ENDIF (CEGUI_OGRE_INCLUDE_DIR AND CEGUI_OGRE_LIBRARIES)
     48ENDIF (CEGUI_OGRE_INCLUDE_DIR AND CEGUI_OGRE_LIBRARIES AND CEGUI_OGRE_LIB_DIR)
    4649
    4750IF (CEGUI_OGRE_FOUND)
    4851    IF (NOT CEGUI_OGRE_FIND_QUIETLY)
    49         MESSAGE(STATUS "  libraries : ${CEGUI_OGRE_LIBRARIES} from ${CEGUI_OGRE_LIB_DIR}")
    50         MESSAGE(STATUS "  includes  : ${CEGUI_OGRE_INCLUDE_DIR}")
     52        MESSAGE(STATUS "CEGUI_Ogre was found.")
     53        IF (VERBOSE_FIND)
     54            MESSAGE (STATUS "  include path: ${CEGUI_OGRE_INCLUDE_DIR}")
     55            MESSAGE (STATUS "  library path: ${CEGUI_OGRE_LIB_DIR}")
     56            MESSAGE (STATUS "  libraries:    ${CEGUI_OGRE_LIBRARIES}")
     57        ENDIF (VERBOSE_FIND)
    5158    ENDIF (NOT CEGUI_OGRE_FIND_QUIETLY)
    5259ELSE (CEGUI_OGRE_FOUND)
    53     IF (CEGUI_OGRE_FIND_REQUIRED)
    54         MESSAGE(FATAL_ERROR "Could not find CEGUI_OGRE")
    55     ENDIF (CEGUI_OGRE_FIND_REQUIRED)
     60    IF (NOT CEGUI_OGRE_INCLUDE_DIR)
     61        MESSAGE(SEND_ERROR "CEGUI_Ogre include path was not found.")
     62    ENDIF (NOT CEGUI_OGRE_INCLUDE_DIR)
     63    IF (NOT CEGUI_OGRE_LIB_DIR)
     64        MESSAGE(SEND_ERROR "CEGUI_Ogre library was not found.")
     65    ENDIF (NOT CEGUI_OGRE_LIB_DIR)
     66    IF (NOT CEGUI_OGRE_LIBRARIES)
     67        MESSAGE(SEND_ERROR "CEGUI_Ogre libraries not known.")
     68    ENDIF (NOT CEGUI_OGRE_LIBRARIES)
    5669ENDIF (CEGUI_OGRE_FOUND)
Note: See TracChangeset for help on using the changeset viewer.