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
7d907c8d
Commit
7d907c8d
authored
Oct 15, 2001
by
Bill Hoffman
Browse files
ENH: clean up error report for source files not found
parent
3a316a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmSourceFile.cxx
View file @
7d907c8d
...
...
@@ -127,7 +127,7 @@ void cmSourceFile::SetName(const char* name, const char* dir,
}
}
std
::
string
errorMsg
=
"Tried"
;
std
::
string
errorMsg
=
"
\n\n
Tried"
;
for
(
std
::
vector
<
std
::
string
>::
const_iterator
ext
=
sourceExts
.
begin
();
ext
!=
sourceExts
.
end
();
++
ext
)
{
...
...
@@ -140,10 +140,8 @@ void cmSourceFile::SetName(const char* name, const char* dir,
errorMsg
+=
" ."
;
errorMsg
+=
*
ext
;
}
errorMsg
+=
" for "
;
cmSystemTools
::
Error
(
"can not find file "
,
pathname
.
c_str
());
cmSystemTools
::
Error
(
errorMsg
.
c_str
(),
pathname
.
c_str
());
cmSystemTools
::
Error
(
"can not find file "
,
pathname
.
c_str
(),
errorMsg
.
c_str
());
}
...
...
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