[CMake] CMake still broken post-2.8.1

Bill Hoffman bill.hoffman at kitware.com
Wed Oct 26 12:42:35 EDT 2011


So, since this is a cross compile situation, there is really no need to 
run the compiler id code.  You should be able to put the following into 
your toolchain file and avoid the compiler id check code altogether:


   SET(CMAKE_C_COMPILER_ID_RUN 1)
   SET(CMAKE_C_PLATFORM_ID "MyPlatform")
   SET(CMAKE_C_COMPILER_ID "MyCompiler")


Does that work, or does it get stuck somewhere else?

-Bill


More information about the CMake mailing list