aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-24 10:40:48 +0100
committerMarvin W <git@larma.de>2017-03-24 15:18:39 +0100
commitb63e5f5f9fc0fcd85adf2f93f65d61abd4cc0681 (patch)
tree20543c6e78d28df345304c7d595383338c7676ce /cmake
parentc0314212a0d951494fe6397fa53a9c5689a3ff87 (diff)
downloaddino-b63e5f5f9fc0fcd85adf2f93f65d61abd4cc0681.tar.gz
dino-b63e5f5f9fc0fcd85adf2f93f65d61abd4cc0681.zip
Some caching and fix gpgme on some systems
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindGPGME.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/FindGPGME.cmake b/cmake/FindGPGME.cmake
index 90f734fe..02fa7593 100644
--- a/cmake/FindGPGME.cmake
+++ b/cmake/FindGPGME.cmake
@@ -20,14 +20,14 @@ if(GPGME_CONFIG_EXECUTABLE)
OUTPUT_VARIABLE GPGME_LDFLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE)
- string(REGEX REPLACE "^(.* |)-l([^ ]*)$( .*|)" "\\2" GPGME_LIBRARY "${GPGME_LDFLAGS}")
- string(REGEX REPLACE "^(.* |)-L([^ ]*)$( .*|)" "\\2" GPGME_LIBRARY_DIRS "${GPGME_LDFLAGS}")
+ string(REGEX REPLACE "^(.* |)-l([^ ]*gpgme[^ ]*)( .*|)$" "\\2" GPGME_LIBRARY "${GPGME_LDFLAGS}")
+ string(REGEX REPLACE "^(.* |)-L([^ ]*)( .*|)$" "\\2" GPGME_LIBRARY_DIRS "${GPGME_LDFLAGS}")
find_library(LIB_NAME_GPGME ${GPGME_LIBRARY} HINTS ${GPGME_LIBRARY_DIRS})
set(GPGME_LIBRARY ${LIB_NAME_GPGME})
if(NOT TARGET gpgme)
- add_library(gpgme SHARED IMPORTED)
- set_property(TARGET gpgme PROPERTY IMPORTED_LOCATION "${GPGME_LIBRARY}")
+ add_library(gpgme INTERFACE IMPORTED)
+ set_property(TARGET gpgme PROPERTY INTERFACE_LINK_LIBRARIES "${GPGME_LDFLAGS}")
set_property(TARGET gpgme PROPERTY INTERFACE_COMPILE_OPTIONS "${GPGME_CFLAGS}")
endif(NOT TARGET gpgme)
endif(GPGME_CONFIG_EXECUTABLE)