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
2a40e191
Commit
2a40e191
authored
Mar 24, 2015
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Add advanced cache entries for GFLAGS_NAMESPACE and GFLAGS_INCLUDE_DIR
parent
376ef823
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
CMakeLists.txt
CMakeLists.txt
+4
-2
No files found.
CMakeLists.txt
View file @
2a40e191
...
...
@@ -29,7 +29,8 @@ set (PACKAGE_SOVERSION "${PACKAGE_VERSION_MAJOR}")
if
(
NOT GFLAGS_NAMESPACE
)
# maintain binary backwards compatibility with gflags library version <= 2.0,
# but at the same time enable the use of the preferred new "gflags" namespace
set
(
GFLAGS_NAMESPACE
"google;
${
PACKAGE_NAME
}
"
)
set
(
GFLAGS_NAMESPACE
"google;
${
PACKAGE_NAME
}
"
CACHE STRING
"Name(s) of library namespace (separate multiple options by semicolon)"
)
mark_as_advanced
(
GFLAGS_NAMESPACE
)
endif
()
set
(
GFLAGS_NAMESPACE_SECONDARY
"
${
GFLAGS_NAMESPACE
}
"
)
list
(
REMOVE_DUPLICATES GFLAGS_NAMESPACE_SECONDARY
)
...
...
@@ -76,7 +77,8 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS)
endif
()
if
(
NOT GFLAGS_INCLUDE_DIR
)
set
(
GFLAGS_INCLUDE_DIR
"
${
PACKAGE_NAME
}
"
)
set
(
GFLAGS_INCLUDE_DIR
"
${
PACKAGE_NAME
}
"
CACHE STRING
"Name of include directory of installed header files"
)
mark_as_advanced
(
GFLAGS_INCLUDE_DIR
)
else
()
if
(
IS_ABSOLUTE GFLAGS_INCLUDE_DIR
)
message
(
FATAL_ERROR
"GFLAGS_INCLUDE_DIR must be a path relative to CMAKE_INSTALL_PREFIX/include"
)
...
...
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