MantisBT - CMake
View Issue Details
0012110CMakeCMakepublic2011-04-20 06:282011-09-12 17:09
oreja80 
Alex Neundorf 
normalminoralways
closedfixed 
FedoraLinux14
CMake 2.8.4 
CMake 2.8.6CMake 2.8.6 
0012110: CodeBlocks project with full paths
I noticed that when switching from cmake 2.8.2 to 2.8.4, C::B projects show the full tree (from / on Linux) instead of starting from the project base.
run cmake with -G"CodeBlocks - Unix Makefiles" with 2.8.2, open the project to see how it looked. Then replace 2.8.2 -> 2.8.4, run the cmake again, and compare the results.
I have posted this question first to the C::B forum. They replied that the fact that the paths in the xml file .cbp that is generated should be relative paths. After opening the project and clicking save, some of the paths do change to relative, but not all.
No tags attached.
Issue History
2011-04-20 06:28oreja80New Issue
2011-04-20 16:08Alex NeundorfAssigned To => Alex Neundorf
2011-04-20 16:08Alex NeundorfStatusnew => assigned
2011-05-06 17:40Alex NeundorfNote Added: 0026453
2011-07-29 17:35Alex NeundorfNote Added: 0027124
2011-07-29 17:35Alex NeundorfStatusassigned => closed
2011-07-29 17:35Alex NeundorfResolutionopen => fixed
2011-07-29 17:35Alex NeundorfFixed in Version => CMake 2.8.6
2011-09-12 17:09David ColeTarget Version => CMake 2.8.6

Notes
(0026453)
Alex Neundorf   
2011-05-06 17:40   
I think this was this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9072535f836154c7a87bff4569741b86ccfc297f [^]
It has the effect that now also files outside CMAKE_SOURCE_DIR are listed in the project file. Which IIRC has the effect that the common root directory for the actual project and these cmake files coming with cmake is used as root, which will usually be / on Linux.

Not sure what to do about this. Not list files which belong to cmake itself ? The generator could recognize whether some path points into its own directory. But I found it actually quite nice to see these files there too.

 Alex
(0027124)
Alex Neundorf   
2011-07-29 17:35   
I committed a patch so that now files which are in a subdir of ${CMAKE_ROOT} are not included in the project.
This has for me the effect that the files are not displayed with absolute paths anymore.

This should be in 2.8.6.

Alex