[CMake] RE: CMake 2.4.1/VC71 Why the wierd <project>.dir subdirs?

Bill Hoffman bill.hoffman at kitware.com
Thu May 10 09:03:58 EDT 2007


Trevor Kellaway wrote:
> Brandon,
>
>   
>> I'd personally like is some standard ways to get at *.obj locations
>>     
> ...
>
> Seconded, I also have a case where I'd like to determine the location of
> .obj files.
>
> I could predict this most of the time until I started pulling in source
> files from relative paths outside the CMakeLists.txt lib directory, then
> CMake started embeddeding the huge full path under the current binary
> directory and this broke this approach.
>
> Also, is there are a way of recovering the current include and define
> lists?
>   
get_target_properties(foo PROPERTIES OBJECT_FILES objs)

I did make an attempt at this, and it worked well for makefiles, but I 
had trouble with Xcode
and visual studio I think...

-Bill



More information about the CMake mailing list