Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
4c192fb5
Commit
4c192fb5
authored
Jun 07, 2015
by
Stephen Kelly
Browse files
cmMakefile: Remove cacheOnly option from GetDefinitions.
It is now unused.
parent
046aafff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmMakefile.cxx
View file @
4c192fb5
...
...
@@ -2497,18 +2497,11 @@ const char* cmMakefile::GetSafeDefinition(const std::string& def) const
return
ret
;
}
std
::
vector
<
std
::
string
>
cmMakefile
::
GetDefinitions
(
int
cacheonly
/* = 0 */
)
const
std
::
vector
<
std
::
string
>
cmMakefile
::
GetDefinitions
()
const
{
std
::
vector
<
std
::
string
>
res
;
if
(
!
cacheonly
)
{
res
=
this
->
Internal
->
ClosureKeys
();
}
std
::
vector
<
std
::
string
>
cacheKeys
=
this
->
GetState
()
->
GetCacheEntryKeys
();
std
::
vector
<
std
::
string
>
res
=
this
->
Internal
->
ClosureKeys
();
std
::
vector
<
std
::
string
>
cacheKeys
=
this
->
GetState
()
->
GetCacheEntryKeys
();
res
.
insert
(
res
.
end
(),
cacheKeys
.
begin
(),
cacheKeys
.
end
());
std
::
sort
(
res
.
begin
(),
res
.
end
());
return
res
;
}
...
...
Source/cmMakefile.h
View file @
4c192fb5
...
...
@@ -511,7 +511,7 @@ public:
* cacheonly is specified and is greater than 0, then only cache
* variables will be listed.
*/
std
::
vector
<
std
::
string
>
GetDefinitions
(
int
cacheonly
=
0
)
const
;
std
::
vector
<
std
::
string
>
GetDefinitions
()
const
;
/**
* Test a boolean variable to see if it is true or false.
...
...
Write
Preview
Supports
Markdown
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