Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lukka
CMake
Commits
ec3c968d
Commit
ec3c968d
authored
Mar 14, 2019
by
Sebastian Holtermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Use scopes to limit temporary object lifetime
parent
1de0c827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
Source/cmake.cxx
Source/cmake.cxx
+16
-14
No files found.
Source/cmake.cxx
View file @
ec3c968d
...
...
@@ -2430,20 +2430,22 @@ static bool cmakeCheckStampFile(const std::string& stampName)
}
// Compare the stamp dependencies against the dependency file itself.
cmFileTimeCache
ftc
;
std
::
string
dep
;
while
(
cmSystemTools
::
GetLineFromStream
(
fin
,
dep
))
{
int
result
;
if
(
!
dep
.
empty
()
&&
dep
[
0
]
!=
'#'
&&
(
!
ftc
.
Compare
(
stampDepends
,
dep
,
&
result
)
||
result
<
0
))
{
// The stamp depends file is older than this dependency. The
// build system is really out of date.
std
::
cout
<<
"CMake is re-running because "
<<
stampName
<<
" is out-of-date.
\n
"
;
std
::
cout
<<
" the file '"
<<
dep
<<
"'
\n
"
;
std
::
cout
<<
" is newer than '"
<<
stampDepends
<<
"'
\n
"
;
std
::
cout
<<
" result='"
<<
result
<<
"'
\n
"
;
return
false
;
{
cmFileTimeCache
ftc
;
std
::
string
dep
;
while
(
cmSystemTools
::
GetLineFromStream
(
fin
,
dep
))
{
int
result
;
if
(
!
dep
.
empty
()
&&
dep
[
0
]
!=
'#'
&&
(
!
ftc
.
Compare
(
stampDepends
,
dep
,
&
result
)
||
result
<
0
))
{
// The stamp depends file is older than this dependency. The
// build system is really out of date.
std
::
cout
<<
"CMake is re-running because "
<<
stampName
<<
" is out-of-date.
\n
"
;
std
::
cout
<<
" the file '"
<<
dep
<<
"'
\n
"
;
std
::
cout
<<
" is newer than '"
<<
stampDepends
<<
"'
\n
"
;
std
::
cout
<<
" result='"
<<
result
<<
"'
\n
"
;
return
false
;
}
}
}
...
...
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