[CMake] cross compiling with sdcc

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jun 15 17:08:29 EDT 2015


On Saturday, June 13, 2015 23:26:59 Torsten at Robitzki.de wrote:
> Hi Alex,
> 
> Am 13.06.2015 um 22:18 schrieb Alexander Neundorf <a.neundorf-work at gmx.net>:
> > On Friday, May 29, 2015 11:14:06 Torsten at Robitzki.de wrote:
>> 
> >> I saw that there is a file Platform/Generic-SDCC-C.cmake, while searching
> >> for a way to force cmake to use this file, I found a makro
> >> CMAKE_FORCE_C_COMPILER that let me override the compiler detection.
> > 
> > …
> > you shouldn't have  to use cmake_force_c_compiler().
> > You did try setting up a toolchain file which points to sdcc ?
> 
> could you elaborate on this solution? Would the
> Platform/Generic-SDCC-C.cmake file that is shipped with a normal cmake
> installation such a toolchain file?


here is some documentation on this:
http://www.cmake.org/cmake/help/v3.2/manual/cmake-toolchains.7.html

Alex



More information about the CMake mailing list