aboutsummaryrefslogtreecommitdiff
path: root/modules/FindAGG.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindAGG.cmake')
-rw-r--r--modules/FindAGG.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/FindAGG.cmake b/modules/FindAGG.cmake
index 8d294b18..ed02a46c 100644
--- a/modules/FindAGG.cmake
+++ b/modules/FindAGG.cmake
@@ -1,9 +1,9 @@
-# - Try to find AGG
+# - Try to find the AGG graphics library
# Once done this will define
#
# AGG_FOUND - system has AGG
# AGG_INCLUDE_DIR - the AGG include directory
-# AGG_LIBRARY - Link these to use OpenGL and GLU
+# AGG_LIBRARIES - Link these to use AGG
# AGG_DEFINITIONS - Compiler switches required for using AGG
#
@@ -22,20 +22,20 @@ FIND_PATH(AGG_INCLUDE_DIR agg2/agg_pixfmt_gray.h
/usr/local/include
)
-FIND_LIBRARY(AGG_LIBRARY NAMES agg
+FIND_LIBRARY(AGG_LIBRARIES NAMES agg
PATHS
${_AGGLinkDir}
/usr/lib
/usr/local/lib
)
-IF(AGG_INCLUDE_DIR AND AGG_LIBRARY)
+IF(AGG_INCLUDE_DIR AND AGG_LIBRARIES)
SET(AGG_FOUND TRUE)
-ENDIF(AGG_INCLUDE_DIR AND AGG_LIBRARY)
+ENDIF(AGG_INCLUDE_DIR AND AGG_LIBRARIES)
IF(AGG_FOUND)
IF(NOT AGG_FIND_QUIETLY)
- MESSAGE(STATUS "Found AGG: ${AGG_LIBRARY}")
+ MESSAGE(STATUS "Found AGG: ${AGG_LIBRARIES}")
ENDIF(NOT AGG_FIND_QUIETLY)
ELSE(AGG_FOUND)
IF(AGG_FIND_REQUIRED)
@@ -43,3 +43,4 @@ ELSE(AGG_FOUND)
ENDIF(AGG_FIND_REQUIRED)
ENDIF(AGG_FOUND)
+MARK_AS_ADVANCED(AGG_INCLUDE_DIR AGG_LIBRARIES)