Skip to content
GitLab
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
9f036244
Commit
9f036244
authored
May 11, 2001
by
Geoffrey Cross
Browse files
Cache file is a bit prettier
parent
72a9a554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmCacheManager.cxx
View file @
9f036244
...
...
@@ -194,6 +194,11 @@ bool cmCacheManager::SaveCache(const char* path) const
<<
"# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
\n
"
<<
"# VALUE is the current value for the KEY.
\n\n
"
;
fout
<<
"########################
\n
"
;
fout
<<
"# EXTERNAL cache entries
\n
"
;
fout
<<
"########################
\n
"
;
fout
<<
"
\n
"
;
for
(
std
::
map
<
std
::
string
,
CacheEntry
>::
const_iterator
i
=
m_Cache
.
begin
();
i
!=
m_Cache
.
end
();
++
i
)
{
...
...
@@ -205,9 +210,16 @@ bool cmCacheManager::SaveCache(const char* path) const
cmCacheManager
::
OutputHelpString
(
fout
,
ce
.
m_HelpString
);
fout
<<
(
*
i
).
first
.
c_str
()
<<
":"
<<
cmCacheManagerTypes
[
t
]
<<
"="
<<
ce
.
m_Value
<<
"
\n
"
;
<<
ce
.
m_Value
<<
"
\n
\n
"
;
}
}
fout
<<
"
\n
"
;
fout
<<
"########################
\n
"
;
fout
<<
"# INTERNAL cache entries
\n
"
;
fout
<<
"########################
\n
"
;
fout
<<
"
\n
"
;
for
(
std
::
map
<
std
::
string
,
CacheEntry
>::
const_iterator
i
=
m_Cache
.
begin
();
i
!=
m_Cache
.
end
();
++
i
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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