[CMake] CMAKE_CXX_COMPILE_OBJECT for compiler with no -o support

Alexander Neundorf a.neundorf-work at gmx.net
Wed Feb 14 02:42:57 EST 2007


Von: "Trevor Kellaway" <tkellaway at asl-electronics.co.uk>

> Hi,
> 
> I'm trying to modify CMAKE to use a cross platform compiler (TI DSP) and
> I'm using the "useecos.cmake" as a template.
> 
> By default CMAKE expects the built object to be a subdirectory of the
> form:
> 
> 	try\CMakeFiles\Try.dir\
> 
> And <OBJECT> is setup to represent this (e.g.
> "try\CMakeFiles\Try.dir\my.obj")
> 
...
> The alternative is if there was a variable available ("<OBJECT_DIR>"
> that had a pre-striped version of this), but I've seen another post that
> says this doesn't seem to exist.
> 
> As a workaround I've having to invoke a batch file and get this to muck
> around doing this (easy in a shell script, difficult under DOS cmd).

Three ideas:
- do as you suggest, use a wrapper
- try whether you can get it working with something like ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${_target}.dir
- check the cmake source for "OBJECT" and if there is nothing like "OBJECT_DIR write a patch and submit it 

Bye
Alex


-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


More information about the CMake mailing list