From 2c9d3dc01e8a9ba4f2e839c42a1bae188328cb92 Mon Sep 17 00:00:00 2001 From: samelian Date: Sun, 6 Mar 2011 08:33:00 +0000 Subject: [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 --- ConfigureChecks.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ConfigureChecks.cmake') 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 "" ) -- cgit v1.2.1