The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14462 
====================================================================== 
Reported By:                Ronan Collobert
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14462
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-10-08 03:10 EDT
Last Modified:              2013-10-08 03:10 EDT
====================================================================== 
Summary:                    RELATIVE_PATH does not return a relative path when
there is a double slash in the original path
Description: 
Assuming:

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.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-08 03:10 Ronan CollobertNew Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to