[CMake] [Dev] CMake 2.5 tool chain support example

Trevor Kellaway tkellaway at asl-electronics.co.uk
Sat Jun 23 07:12:53 EDT 2007


Alex,

> > Please have a look at the attached file and put it into your 
> > cmake/Modules/ directory and let me know what you think.
> >
> > It includes three simple macros, with these you can change your 
> > toolchain file to:

Tested this, and it works OK, apart from a typo in the last line of
CMakeForceCompiler.cmake (fixed version attached).


> > Can't you move the following three also in the toolchain file ?
> > If they are already in the cache, you could try the FORCE option.
> > SET (HC12_PIPER   "piper" CACHE STRING "Freescale tool...")
> > SET (CMAKE_AR     "libmaker" CACHE STRING "Tool chain 
> library archiver")
> > SET (CMAKE_LINKER "linker"   CACHE STRING "Tool chain linker")

If I move these the build breaks, I'll look into why and let you know.

- TrevK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeForceCompiler.cmake
Type: application/octet-stream
Size: 815 bytes
Desc: CMakeForceCompiler.cmake
Url : http://public.kitware.com/pipermail/cmake/attachments/20070623/7ebccce8/CMakeForceCompiler.obj


More information about the CMake mailing list