From: Werner S. <sm...@us...> - 2006-10-18 18:56:40
|
Update of /cvsroot/plplot/plplot/cmake/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1790/cmake/modules Modified Files: FindAGG.cmake Log Message: Fixed a bug - part of the code is now only processed if pkgconfig IS available, not the other way round. Thanks, Alan. Index: FindAGG.cmake =================================================================== RCS file: /cvsroot/plplot/plplot/cmake/modules/FindAGG.cmake,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- FindAGG.cmake 18 Oct 2006 07:22:46 -0000 1.2 +++ FindAGG.cmake 18 Oct 2006 18:56:27 -0000 1.3 @@ -14,7 +14,7 @@ else (AGG_INCLUDE_DIR AND AGG_LIBRARIES) - if(NOT PKGCONFIG_EXECUTABLE) + if(PKGCONFIG_EXECUTABLE) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls INCLUDE(UsePkgConfig) @@ -22,7 +22,7 @@ PKGCONFIG(libagg _AGGIncDir _AGGLinkDir _AGGLinkFlags _AGGCflags) set(AGG_DEFINITIONS ${_AGGCflags}) - endif(NOT PKGCONFIG_EXECUTABLE) + endif(PKGCONFIG_EXECUTABLE) FIND_PATH(AGG_INCLUDE_DIR agg2/agg_pixfmt_gray.h ${_AGGIncDir} |