Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
b0c4cd29
Commit
b0c4cd29
authored
Sep 28, 2018
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Define both 'gflags' and 'gflags::gflags' alias targets
parent
04c8ce76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
CMakeLists.txt
CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
b0c4cd29
...
...
@@ -498,6 +498,10 @@ if (GFLAGS_IS_SUBPROJECT)
foreach
(
type IN ITEMS static shared
)
foreach
(
opts IN ITEMS
"_nothreads"
""
)
if
(
TARGET gflags
${
opts
}
_
${
type
}
)
# Define "gflags" alias for super-projects treating targets of this library as part of their own project
# (also for backwards compatibility with gflags 2.2.1 which only defined this alias)
add_library
(
gflags ALIAS gflags
${
opts
}
_
${
type
}
)
# Define "gflags::gflags" alias for projects that support both find_package(gflags) and add_subdirectory(gflags)
add_library
(
gflags::gflags ALIAS gflags
${
opts
}
_
${
type
}
)
break
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment