diff options
Diffstat (limited to 'modules/FindCups.cmake')
-rw-r--r-- | modules/FindCups.cmake | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/FindCups.cmake b/modules/FindCups.cmake index 3fa26686..fa97b6f1 100644 --- a/modules/FindCups.cmake +++ b/modules/FindCups.cmake @@ -1,9 +1,9 @@ -# - Try to find Cups +# - Try to find the Cups printing system # Once done this will define # # CUPS_FOUND - system has Cups # CUPS_INCLUDE_DIR - the Cups include directory -# CUPS_LIBRARY - Link these to use OpenGL and GLU +# CUPS_LIBRARIES - Libraries needed to use Cups # CUPS_DEFINITIONS - Compiler switches required for using Cups # @@ -13,19 +13,19 @@ FIND_PATH(CUPS_INCLUDE_DIR cups/cups.h /usr/local/include ) -FIND_LIBRARY(CUPS_LIBRARY NAMES cups +FIND_LIBRARY(CUPS_LIBRARIES NAMES cups PATHS /usr/lib /usr/local/lib ) -IF(CUPS_INCLUDE_DIR AND CUPS_LIBRARY) +IF(CUPS_INCLUDE_DIR AND CUPS_LIBRARIES) SET(CUPS_FOUND TRUE) -ENDIF(CUPS_INCLUDE_DIR AND CUPS_LIBRARY) +ENDIF(CUPS_INCLUDE_DIR AND CUPS_LIBRARIES) IF(CUPS_FOUND) IF(NOT Cups_FIND_QUIETLY) - MESSAGE(STATUS "Found Cups: ${CUPS_LIBRARY}") + MESSAGE(STATUS "Found Cups: ${CUPS_LIBRARIES}") ENDIF(NOT Cups_FIND_QUIETLY) ELSE(CUPS_FOUND) IF(Cups_FIND_REQUIRED) @@ -33,3 +33,4 @@ ELSE(CUPS_FOUND) ENDIF(Cups_FIND_REQUIRED) ENDIF(CUPS_FOUND) +MARK_AS_ADVANCED(CUPS_INCLUDE_DIR CUPS_LIBRARIES) |