View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014462CMakeCMakepublic2013-10-08 03:102015-03-02 08:57
ReporterRonan Collobert 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 2.8.11.2 
Target VersionFixed in Version 
Summary0014462: RELATIVE_PATH does not return a relative path when there is a double slash in the original path
DescriptionAssuming:

SET(PATH1 "/foo/bar")
SET(PATH2 "/foo/bar//aaa/bbb")

FILE(RELATIVE_PATH RELPATH12 "${PATH1}" "${PATH2}")

MESSAGE("RELATIVE PATH: ${RELPATH12}")

This will print:
RELATIVE PATH: /aaa/bbb

Which is *not* a relative path in any ways (it should have been "aaa/bbb"). It is common that there are extra / in paths (often occurring when two paths are concatenated), and CMake should not take in account those ones.
TagsNo tags attached.
Attached Files

 Relationships
related to 0012065closedClinton Stimpson file(RELATIVE_PATH ...) gives wrong results with extra "./" 

  Notes
(0036757)
Clinton Stimpson (developer)
2014-09-09 10:33

Fixed.
http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=92b582a [^]
(0038108)
Robert Maynard (manager)
2015-03-02 08:57

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-10-08 03:10 Ronan Collobert New Issue
2014-02-19 15:58 Brad King Relationship added related to 0012065
2014-09-09 10:33 Clinton Stimpson Assigned To => Clinton Stimpson
2014-09-09 10:33 Clinton Stimpson Status new => assigned
2014-09-09 10:33 Clinton Stimpson Note Added: 0036757
2014-09-09 10:33 Clinton Stimpson Status assigned => resolved
2014-09-09 10:33 Clinton Stimpson Resolution open => fixed
2015-03-02 08:57 Robert Maynard Note Added: 0038108
2015-03-02 08:57 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team