diff options
| author | Jafar Abdi <cafer.abdi@gmail.com> | 2021-09-17 02:20:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 16:20:26 -0700 |
| commit | b7aa43829152d23cec86a8b9292514ac35ca5d03 (patch) | |
| tree | 2b6a9e40cae0a37b4d7388f3d3c2f5cef58fca53 | |
| parent | 2aa021c307b9edb024b92efb17d8aa58133a73c4 (diff) | |
| download | vcpkg-b7aa43829152d23cec86a8b9292514ac35ca5d03.tar.gz vcpkg-b7aa43829152d23cec86a8b9292514ac35ca5d03.zip | |
[gflags]: Fix targets gflags::* not being globally visible (#20011)
* [gflags]: Fix targets gflags::* not globally visible
* Add the target as interface
* vcpkg x-add-version --all
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
| -rw-r--r-- | ports/gflags/vcpkg-cmake-wrapper.cmake | 3 | ||||
| -rw-r--r-- | ports/gflags/vcpkg.json | 2 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/g-/gflags.json | 5 |
4 files changed, 9 insertions, 3 deletions
diff --git a/ports/gflags/vcpkg-cmake-wrapper.cmake b/ports/gflags/vcpkg-cmake-wrapper.cmake index f401356da..55b3fc8dc 100644 --- a/ports/gflags/vcpkg-cmake-wrapper.cmake +++ b/ports/gflags/vcpkg-cmake-wrapper.cmake @@ -4,6 +4,7 @@ _find_package(${ARGS}) foreach(tgt gflags gflags_shared gflags_static)
if (NOT TARGET ${tgt} AND TARGET "gflags::${tgt}")
- add_library(${tgt} ALIAS "gflags::${tgt}")
+ add_library(${tgt} INTERFACE IMPORTED)
+ target_link_libraries(${tgt} INTERFACE "gflags::${tgt}")
endif()
endforeach(tgt)
diff --git a/ports/gflags/vcpkg.json b/ports/gflags/vcpkg.json index 695ab6a92..5b020a81e 100644 --- a/ports/gflags/vcpkg.json +++ b/ports/gflags/vcpkg.json @@ -1,7 +1,7 @@ { "name": "gflags", "version-string": "2.2.2", - "port-version": 3, + "port-version": 4, "description": "A C++ library that implements commandline flags processing", "homepage": "https://github.com/gflags/gflags", "supports": "!uwp" diff --git a/versions/baseline.json b/versions/baseline.json index 703135f58..fbdad9a6b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2358,7 +2358,7 @@ }, "gflags": { "baseline": "2.2.2", - "port-version": 3 + "port-version": 4 }, "ghc-filesystem": { "baseline": "1.5.4", diff --git a/versions/g-/gflags.json b/versions/g-/gflags.json index 820a61a3b..e1530e309 100644 --- a/versions/g-/gflags.json +++ b/versions/g-/gflags.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "16da9eec785be4c0d0ad3e32cc3b39698d0611b1", + "version-string": "2.2.2", + "port-version": 4 + }, + { "git-tree": "e229646111622b3b08d98d42741e8c861487d18e", "version-string": "2.2.2", "port-version": 3 |
