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
be652956
Commit
be652956
authored
Dec 05, 2018
by
Andreas Schuh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: GFLAGS_* variables take precedence in gflags_define
parent
524b83d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
utils.cmake
cmake/utils.cmake
+8
-6
No files found.
cmake/utils.cmake
View file @
be652956
...
...
@@ -65,16 +65,18 @@ macro (gflags_define type varname docstring default)
message
(
FATAL_ERROR
"gflags_variable: Too many macro arguments"
)
endif
()
if
(
NOT DEFINED GFLAGS_
${
varname
}
)
if
(
GFLAGS_IS_SUBPROJECT AND
"
${
ARGC
}
"
EQUAL 5
)
set
(
GFLAGS_
${
varname
}
"
${
ARGV4
}
"
)
if
(
DEFINED
${
varname
}
)
set
(
GFLAGS_
${
varname
}
"
${${
varname
}
}
"
)
else
()
set
(
GFLAGS_
${
varname
}
"
${
default
}
"
)
if
(
GFLAGS_IS_SUBPROJECT AND
"
${
ARGC
}
"
EQUAL 5
)
set
(
GFLAGS_
${
varname
}
"
${
ARGV4
}
"
)
else
()
set
(
GFLAGS_
${
varname
}
"
${
default
}
"
)
endif
()
endif
()
endif
()
if
(
GFLAGS_IS_SUBPROJECT
)
if
(
NOT DEFINED
${
varname
}
)
set
(
${
varname
}
"
${
GFLAGS_
${
varname
}}
"
)
endif
()
set
(
${
varname
}
"
${
GFLAGS_
${
varname
}}
"
)
else
()
set
(
${
varname
}
"
${
GFLAGS_
${
varname
}}
"
CACHE
${
type
}
"
${
docstring
}
"
)
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