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

    r1505 r1776  
    1616# But for now, we have to look around.
    1717# Other (Unix) systems should be able to utilize the non-framework paths.
     18#
     19# Several changes and additions by Fabian 'x3n' Landau
     20#                 > www.orxonox.net <
     21
     22IF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)
     23  SET (ALUT_FIND_QUIETLY TRUE)
     24ENDIF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)
     25
    1826FIND_PATH(ALUT_INCLUDE_DIR AL/alut.h
    1927  $ENV{ALUTDIR}/include
     
    4250  ../libs/freealut-1.1.0/include
    4351  )
     52
    4453# I'm not sure if I should do a special casing for Apple. It is
    4554# unlikely that other Unix systems will find the framework path.
     
    8291ENDIF(${ALUT_INCLUDE_DIR} MATCHES ".framework")
    8392
    84 SET(ALUT_FOUND "NO")
    85 IF(ALUT_LIBRARY)
    86   SET(ALUT_FOUND "YES")
    87         MESSAGE(STATUS "FreeAlut was found")
    88 ENDIF(ALUT_LIBRARY)
     93SET (ALUT_FOUND "NO")
     94IF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)
     95  SET (ALUT_FOUND "YES")
     96  IF (NOT ALUT_FIND_QUIETLY)
     97    MESSAGE (STATUS "FreeAlut was found.")
     98    IF (VERBOSE_FIND)
     99      MESSAGE (STATUS "  include path: ${ALUT_INCLUDE_DIR}")
     100      MESSAGE (STATUS "  library path: ${ALUT_LIBRARY}")
     101      MESSAGE (STATUS "  libraries:    alut")
     102    ENDIF (VERBOSE_FIND)
     103  ENDIF (NOT ALUT_FIND_QUIETLY)
     104ELSE (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)
     105  IF (NOT ALUT_INCLUDE_DIR)
     106    MESSAGE (SEND_ERROR "FreeAlut include path was not found.")
     107  ENDIF (NOT ALUT_INCLUDE_DIR)
     108  IF (NOT ALUT_LIBRARY)
     109    MESSAGE (SEND_ERROR "FreeAlut library was not found.")
     110  ENDIF (NOT ALUT_LIBRARY)
     111ENDIF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)
    89112
    90113
Note: See TracChangeset for help on using the changeset viewer.