[cmake-developers] Path to object file

Andy Cedilnik andy.cedilnik at kitware.com
Wed Jul 5 16:32:20 EDT 2006


Hello,

Could somebody look at the change:

/cvsroot/CMake/CMake/Source/cmLocalUnixMakefileGenerator3.cxx,v  <--  
cmLocalUnixMakefileGenerator3.cxx
new revision: 1.152; previous revision: 1.151

and make sure this makes sense?

Before if the source file was in the source tree, the path to the object 
file included the subdirectory of the source file, while if the source 
file was outside the source tree, then you got some funky relative path 
that included absolute path to the source directory as a subdirectory.

For example (source directory is /src/to/foo):

ADD_EXECUTABLE(foo /foo/bar/lala.c)

translated to (binary directory is /bin/to/foo):

/bin/to/foo/CMakeFiles/foo.dir/foo/bar/lala.o

I removed that second part, so now the path would be:

/bin/to/foo/CMakeFiles/foo.dir/lala.o

Any problem?

       Andy



More information about the cmake-developers mailing list