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
377f4e79
Commit
377f4e79
authored
Feb 18, 2006
by
Brad King
Browse files
BUG: Remove trailing slashes from install destinations.
parent
cd3c98d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmLocalGenerator.cxx
View file @
377f4e79
...
...
@@ -378,6 +378,10 @@ void cmLocalGenerator::GenerateInstallRules()
{
bool
need_relink
=
l
->
second
.
NeedRelinkBeforeInstall
();
destination
=
"${CMAKE_INSTALL_PREFIX}"
+
l
->
second
.
GetInstallPath
();
if
(
destination
[
destination
.
size
()
-
1
]
==
'/'
)
{
destination
=
destination
.
substr
(
0
,
destination
.
size
()
-
1
);
}
cmSystemTools
::
ConvertToUnixSlashes
(
destination
);
const
char
*
dest
=
destination
.
c_str
();
int
type
=
l
->
second
.
GetType
();
...
...
@@ -409,6 +413,10 @@ void cmLocalGenerator::GenerateInstallRules()
// Change the destination to the .dll destination.
destination
=
"${CMAKE_INSTALL_PREFIX}"
+
l
->
second
.
GetRuntimeInstallPath
();
if
(
destination
[
destination
.
size
()
-
1
]
==
'/'
)
{
destination
=
destination
.
substr
(
0
,
destination
.
size
()
-
1
);
}
dest
=
destination
.
c_str
();
}
else
...
...
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