diff options
author | Marvin W <git@larma.de> | 2022-11-03 09:46:07 -0600 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-11-03 14:10:57 -0600 |
commit | 6e37f3fe3fa0f4ce9a25a91e9d97191c8e4abec1 (patch) | |
tree | 82ab76feb349dceccdfe3e362f211ca3cff7c10e /cmake/MultiFind.cmake | |
parent | 809c1579e41000f2f43eeb05735afc8165a1a430 (diff) | |
download | dino-6e37f3fe3fa0f4ce9a25a91e9d97191c8e4abec1.tar.gz dino-6e37f3fe3fa0f4ce9a25a91e9d97191c8e4abec1.zip |
Automatically select appropriate libsoup version
Diffstat (limited to 'cmake/MultiFind.cmake')
-rw-r--r-- | cmake/MultiFind.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/MultiFind.cmake b/cmake/MultiFind.cmake index b40a4677..3400a9bc 100644 --- a/cmake/MultiFind.cmake +++ b/cmake/MultiFind.cmake @@ -20,6 +20,7 @@ function(find_packages result) find_package(${pkg} ${pkg_version} REQUIRED) list(APPEND _res ${${pkg}_PKG_CONFIG_NAME}) list(APPEND _res_libs ${${pkg}_LIBRARIES}) + set(${pkg}_VERSION "${${pkg}_VERSION}" PARENT_SCOPE) endforeach(pkg) foreach(pkg ${ARGS_OPTIONAL}) string(REPLACE ">=" ";" pkg_ ${pkg}) @@ -38,6 +39,7 @@ function(find_packages result) if(${pkg}_FOUND) list(APPEND _res ${${pkg}_PKG_CONFIG_NAME}) list(APPEND _res_libs ${${pkg}_LIBRARIES}) + set(${pkg}_VERSION "${${pkg}_VERSION}" PARENT_SCOPE) endif() endforeach(pkg) set(${result} "${_res}" PARENT_SCOPE) |