Try finding gpg-error library, to improve building on OSX.

svn path=/trunk/; revision=30100
This commit is contained in:
Stig Bjørlykke 2009-09-23 18:15:31 +00:00
parent eead6ee717
commit d7fc9e378d
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ FIND_PATH(GCRYPT_INCLUDE_DIR gcrypt.h)
SET(GCRYPT_NAMES gcrypt)
FIND_LIBRARY(GCRYPT_LIBRARY NAMES ${GCRYPT_NAMES} )
FIND_LIBRARY(GCRYPT_ERROR_LIBRARY NAMES gpg-error )
# handle the QUIETLY and REQUIRED arguments and set GCRYPT_FOUND to TRUE if
# all listed variables are TRUE
@ -22,7 +23,7 @@ INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GCRYPT DEFAULT_MSG GCRYPT_LIBRARY GCRYPT_INCLUDE_DIR)
IF(GCRYPT_FOUND)
SET( GCRYPT_LIBRARIES ${GCRYPT_LIBRARY} )
SET( GCRYPT_LIBRARIES ${GCRYPT_LIBRARY} ${GCRYPT_ERROR_LIBRARY})
ELSE(GCRYPT_FOUND)
SET( GCRYPT_LIBRARIES )
ENDIF(GCRYPT_FOUND)