[gflags]: Fix targets gflags::* not being globally visible#20011
Merged
BillyONeal merged 4 commits intomicrosoft:masterfrom Sep 16, 2021
Merged
[gflags]: Fix targets gflags::* not being globally visible#20011BillyONeal merged 4 commits intomicrosoft:masterfrom
BillyONeal merged 4 commits intomicrosoft:masterfrom
Conversation
Neumann-A
reviewed
Sep 6, 2021
Comment on lines
7
to
8
Contributor
There was a problem hiding this comment.
Probably something like:
Suggested change
| set_target_properties("gflags::${tgt}" PROPERTIES IMPORTED_GLOBAL TRUE) | |
| add_library(${tgt} ALIAS "gflags::${tgt}") | |
| add_library(${tgt} INTERFACE IMPORTED UNKNOWN) | |
| target_link_libraries(${tgt} INTERFACE "gflags::${tgt}") |
is better since it does not require to make the targets global.
Contributor
|
@JafarAbdi, could you address the review suggestions? |
a7a42d7 to
2465643
Compare
Contributor
Author
Done, but I'm not sure why the CI is failing I also see the main branch is failing could that be related .? |
Member
Yeah, sorry about that. We backed out the new check that caused a bunch of PRs to fail in the last 10 hours or so |
PhoebeHui
approved these changes
Sep 16, 2021
Contributor
PhoebeHui
left a comment
There was a problem hiding this comment.
Thanks for your updates!
Member
|
Thanks for the fix! |
amyspark
added a commit
to amyspark/libjxl
that referenced
this pull request
Mar 13, 2022
amyspark
added a commit
to amyspark/libjxl
that referenced
this pull request
Mar 13, 2022
amyspark
added a commit
to amyspark/libjxl
that referenced
this pull request
Mar 24, 2022
amyspark
added a commit
to amyspark/libjxl
that referenced
this pull request
Apr 8, 2022
sboukortt
pushed a commit
to libjxl/libjxl
that referenced
this pull request
Apr 19, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the pull request
I'm getting the following error when calling
find_package(gflags REQUIRED)in a cmake projectafter debugging it I think it happened after merging #18739 (I don't see the error when checking its parent commit), to fix it I used the solution described here
Which triplets are supported/not supported? Have you updated the CI baseline?
linux, No
Does your PR follow the maintainer guide?
Yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --alland committed the result?Yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/