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
80f71694
Commit
80f71694
authored
Feb 06, 2002
by
Bill Hoffman
Browse files
add bool return value so diagnostics are easier
parent
caa49f2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmSystemTools.cxx
View file @
80f71694
...
...
@@ -749,13 +749,15 @@ void cmSystemTools::Message(const char* m1, const char *title)
}
void
cmSystemTools
::
CopyFileIfDifferent
(
const
char
*
source
,
bool
cmSystemTools
::
CopyFileIfDifferent
(
const
char
*
source
,
const
char
*
destination
)
{
if
(
cmSystemTools
::
FilesDiffer
(
source
,
destination
))
{
cmSystemTools
::
cmCopyFile
(
source
,
destination
);
return
true
;
}
return
false
;
}
...
...
Source/cmSystemTools.h
View file @
80f71694
...
...
@@ -174,7 +174,7 @@ public:
* Copy the source file to the destination file only
* if the two files differ.
*/
static
void
CopyFileIfDifferent
(
const
char
*
source
,
static
bool
CopyFileIfDifferent
(
const
char
*
source
,
const
char
*
destination
);
///! Compare the contents of two files. Return true if different.
...
...
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