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 /ports | |
| 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>
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/gflags/vcpkg-cmake-wrapper.cmake | 3 | ||||
| -rw-r--r-- | ports/gflags/vcpkg.json | 2 |
2 files changed, 3 insertions, 2 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" |
