[CMake] CMake still broken post-2.8.1

Brad King brad.king at kitware.com
Wed Jan 25 11:12:08 EST 2012


On 1/25/2012 10:53 AM, Phil Smith wrote:
>> We've also provided other approaches elsewhere in this thread to
>> avoid the problem altogether by setting up your toolchain file to
>> skip compiler id detection.
>
> OK, I'm willing to do that, but I can't figure out how to do so.

Actually the previous discussion was about skipping the test for a
working compiler as well as the compiler id.  There is a mid ground
that can skip just the id part but keep everything else the same.

> It seems like:
>
> SET(CMAKE_C_COMPILER   "regina.exe" "cc.rex dcc.exe")
> SET(CMAKE_CXX_COMPILER "regina.exe" "cc.rex dcxx.exe")

Keep those lines and add

   SET(CMAKE_C_COMPILER_ID_RUN 1)
   SET(CMAKE_C_PLATFORM_ID "")
   SET(CMAKE_C_COMPILER_ID "")
   SET(CMAKE_CXX_COMPILER_ID_RUN 1)
   SET(CMAKE_CXX_PLATFORM_ID "")
   SET(CMAKE_CXX_COMPILER_ID "")

Fill in the ID values if you need to.

-Brad


More information about the CMake mailing list