[CMake] Cross-compiling a static library (CMake 2.8.3)

Emmanuel Blot eblot.ml at gmail.com
Mon Jan 10 13:41:58 EST 2011


>> INCLUDE (CMakeForceCompiler)
>> CMAKE_FORCE_C_COMPILER (arm-eabi-gcc-4.5.2 GNU 4)
>
> I haven't used that one before.

FWIW: I found why I use CMAKE_FORCE_C_COMPILER rather than the simpler
CMAKE_C_COMPILER command:
I build projects for eCos from outside the eCos tree directory, and
CMake has some trouble finding the eCos header files when simply using
CMAKE_C_COMPILER. It complains about CMAKE_FIND_ROOT_PATH which is
nevertheless defined as expected.

Cheers,
Manu


More information about the CMake mailing list