[kdepim] ConfigureChecks: cleanup GPGME_INCLUDE_DIRS and GPGME_LIBRARIES only if they really contain something

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223930 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent b67ece773c
commit 2c9d3dc01e

@ -42,8 +42,12 @@ if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOO
__run_gpgme_config( libs GPGME_LIBRARIES )
# cleanup
string( REGEX REPLACE "(^| )-I" ";" GPGME_INCLUDE_DIRS ${GPGME_INCLUDE_DIRS} )
string( REGEX REPLACE "(^| )-l" ";" GPGME_LIBRARIES ${GPGME_LIBRARIES} )
if( GPGME_INCLUDE_DIRS )
string( REGEX REPLACE "(^| )-I" ";" GPGME_INCLUDE_DIRS "${GPGME_INCLUDE_DIRS}" )
endif( )
if( GPGME_LIBRARIES )
string( REGEX REPLACE "(^| )-l" ";" GPGME_LIBRARIES "${GPGME_LIBRARIES}" )
endif( )
# assuming that all newer system have gpgme >= 0.4
set( HAVE_GPGME_0_4_BRANCH 1 CACHE INTERNAL "" )

Loading…
Cancel
Save