Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dennis Klein
CMake
Commits
7db671a1
Commit
7db671a1
authored
Oct 13, 2016
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmcldeps: search for single-byte strings as characters
parent
a8513d8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Source/cmcldeps.cxx
Source/cmcldeps.cxx
+2
-2
No files found.
Source/cmcldeps.cxx
View file @
7db671a1
...
...
@@ -258,7 +258,7 @@ int main()
// needed to suppress filename output of msvc tools
std
::
string
srcfilename
;
{
std
::
string
::
size_type
pos
=
srcfile
.
rfind
(
"
\\
"
);
std
::
string
::
size_type
pos
=
srcfile
.
rfind
(
'
\\
'
);
if
(
pos
==
std
::
string
::
npos
)
{
srcfilename
=
srcfile
;
}
else
{
...
...
@@ -280,7 +280,7 @@ int main()
clrest
=
replace
(
clrest
,
objfile
,
objfile
+
".dep.obj "
);
// rc: src\x\x.rc -> cl: /Tc src\x\x.rc
if
(
srcfile
.
find
(
" "
)
!=
std
::
string
::
npos
)
if
(
srcfile
.
find
(
' '
)
!=
std
::
string
::
npos
)
srcfile
=
"
\"
"
+
srcfile
+
"
\"
"
;
clrest
=
replace
(
clrest
,
srcfile
,
"/Tc "
+
srcfile
);
...
...
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