Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
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