-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[glog] Fixed gflags dependency (#18739)
- Loading branch information
Showing
6 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Source: gflags | ||
Version: 2.2.2-1 | ||
Version: 2.2.2 | ||
Port-Version: 2 | ||
Homepage: https://github.com/gflags/gflags | ||
Description: A C++ library that implements commandline flags processing | ||
Supports: !uwp |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The package gflags provides CMake targets: | ||
|
||
find_package(gflags CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE gflags::gflags) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(GFLAGS_USE_TARGET_NAMESPACE ON) | ||
|
||
_find_package(${ARGS}) | ||
|
||
foreach(tgt gflags gflags_shared gflags_static) | ||
if (NOT TARGET ${tgt} AND TARGET "gflags::${tgt}") | ||
add_library(${tgt} ALIAS "gflags::${tgt}") | ||
endif() | ||
endforeach(tgt) |
This file contains 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
This file contains 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