MantisBT - CMake
View Issue Details
0006642CMakeCMakepublic2008-03-23 11:332011-11-08 03:06
Olaf van der Spek 
 
normalminoralways
closedwon't fix 
 
 
0006642: Absolute relative paths for VS?
> RelativePath="F:\VC\xbt\Tracker\transaction.cpp"

This doesn't look absolute to me. ;)
Moving directories isn't possible this way. Could you use relative paths?
CMAKE_USE_RELATIVE_PATHS
Issue History
2008-03-23 11:33Olaf van der SpekNew Issue
2008-03-23 11:38Olaf van der SpekNote Added: 0010881
2008-03-23 13:17Bill HoffmanStatusnew => closed
2008-03-23 13:17Bill HoffmanNote Added: 0010882
2008-03-23 13:17Bill HoffmanResolutionopen => won't fix
2008-03-24 14:31Olaf van der SpekStatusclosed => feedback
2008-03-24 14:31Olaf van der SpekResolutionwon't fix => reopened
2008-03-24 14:31Olaf van der SpekNote Added: 0010892
2008-03-24 14:40Bill HoffmanNote Added: 0010893
2008-03-24 14:40Bill HoffmanStatusfeedback => closed
2008-03-24 14:40Bill HoffmanResolutionreopened => won't fix
2011-11-08 03:06Robert PollakTag Attached: CMAKE_USE_RELATIVE_PATHS

Notes
(0010881)
Olaf van der Spek   
2008-03-23 11:38   
> This doesn't look absolute to me.

Argh, I meant relative of course.
(0010882)
Bill Hoffman   
2008-03-23 13:17   
For a variety of reasons we do not use relative paths. Moving CMake generated projects around is not safe. Please search the mailing list for more information.
(0010892)
Olaf van der Spek   
2008-03-24 14:31   
> Please search the mailing list for more information.

I don't see a search option at http://www.cmake.org/pipermail/cmake/ [^]
Is there a search option?
If not, in which months was this discussed? And what were the subjects?

> For a variety of reasons we do not use relative paths. Moving CMake generated projects around is not safe.

I can understand for Linux / make, but for MSVS I don't.
(0010893)
Bill Hoffman   
2008-03-24 14:40   
Just use the search box from here:
http://www.cmake.org [^]

Basically, there are lots of try-compile stuff that goes on to figure out the version of the compiler (even on windows), location of installed software, and a bunch of other machine specific stuff. If you are looking to create relocatable vcproj files CMake is the wrong tool. I think there are some folks doing this, although it is unsupported, you may want to try the mailing list instead of the bug tracker.