[cmake-developers] Path to object file

Andy Cedilnik andy.cedilnik at kitware.com
Wed Jul 5 16:52:03 EDT 2006


Hmm,

There is some code about making a unique file name.

That said, I will look into this a bit more. I guess I can always try to 
fix the problem I actually had... Mac Bundles.

       Andy

Bill Hoffman wrote:
> t 04:32 PM 7/5/2006, Andy Cedilnik wrote:
>   
>> 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?
>>     
>
> I think the problem shows up when there is a lala.c in the current
> directory and /foo/bar/lala.c:
> ADD_EXECUTABLE(foo lala.c /foo/bar/lala.c)  In your change this
> will fail.
>
> -Bill
>
>   




More information about the cmake-developers mailing list