diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-06 08:33:00 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-06 08:33:00 +0000 |
commit | 2c9d3dc01e8a9ba4f2e839c42a1bae188328cb92 (patch) | |
tree | 5444259d901adcb42694e42f865924ee0b098b53 /ConfigureChecks.cmake | |
parent | b67ece773ccb72aafa48a4117a9aae82531e3aaf (diff) | |
download | tdepim-2c9d3dc01e8a9ba4f2e839c42a1bae188328cb92.tar.gz tdepim-2c9d3dc01e8a9ba4f2e839c42a1bae188328cb92.zip |
[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
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 047111149..a51178baa 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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 "" ) |