diff options
author | Marvin W <git@larma.de> | 2019-09-17 00:34:39 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-09-17 00:36:25 +0200 |
commit | f746ce74ce6e905483d86b603df01b81acbca7b4 (patch) | |
tree | d7a1ab5b15e6118e113d1981b332477e011348ca /cmake/PkgConfigWithFallbackOnConfigScript.cmake | |
parent | 9daf18f031058ae4c1f13edbf62624bc0345c96f (diff) | |
download | dino-f746ce74ce6e905483d86b603df01b81acbca7b4.tar.gz dino-f746ce74ce6e905483d86b603df01b81acbca7b4.zip |
Fix compilation with older gcrypt
Diffstat (limited to 'cmake/PkgConfigWithFallbackOnConfigScript.cmake')
-rw-r--r-- | cmake/PkgConfigWithFallbackOnConfigScript.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/PkgConfigWithFallbackOnConfigScript.cmake b/cmake/PkgConfigWithFallbackOnConfigScript.cmake index 563e4ab3..4bc94a33 100644 --- a/cmake/PkgConfigWithFallbackOnConfigScript.cmake +++ b/cmake/PkgConfigWithFallbackOnConfigScript.cmake @@ -88,6 +88,8 @@ function(find_pkg_config_with_fallback_on_config_script name) string(REGEX REPLACE "^(.* |)-L([^ ]*)( .*|)$" "\\2" ${name}_LIBRARY_DIRS "${${name}_LDFLAGS}") find_library(${name}_LIBRARY ${${name}_LIBRARY_NAME} HINTS ${${name}_LIBRARY_DIRS}) mark_as_advanced(${name}_LIBRARY) + set(${name}_LIBRARY ${${name}_LIBRARY} PARENT_SCOPE) + set(${name}_VERSION ${${name}_VERSION} PARENT_SCOPE) unset(${name}_LIBRARY_NAME) unset(${name}_LIBRARY_DIRS) |