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
7c9c1c59
Commit
7c9c1c59
authored
Dec 23, 2002
by
Bill Hoffman
Browse files
ENH: handle // in the path
parent
e74377dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmSystemTools.cxx
View file @
7c9c1c59
...
...
@@ -702,6 +702,12 @@ void cmSystemTools::ConvertToUnixSlashes(std::string& path)
path
[
pos
]
=
'/'
;
pos
++
;
}
// Remove all // from the path just like most unix shells
while
((
pos
=
path
.
find
(
"//"
,
0
))
!=
std
::
string
::
npos
)
{
cmSystemTools
::
ReplaceString
(
path
,
"//"
,
"/"
);
}
// remove any trailing slash
if
(
path
.
size
()
&&
path
[
path
.
size
()
-
1
]
==
'/'
)
{
...
...
@@ -1700,7 +1706,6 @@ void cmSystemTools::SplitProgramPath(const char* in_name,
dir
=
""
;
}
}
if
((
dir
!=
""
)
&&
!
cmSystemTools
::
FileIsDirectory
(
dir
.
c_str
()))
{
std
::
string
oldDir
=
in_name
;
...
...
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