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
CMakeForceCompiler.cmake
Description: CMakeForceCompiler.cmake
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake