[CMake] disable compiler test

Jack Kelly endgame.dos at gmail.com
Mon Sep 10 15:25:06 EDT 2007


Juan Sanchez wrote:
> How do you disable the compiler test?  Our version of gcc is passing a
> bad compiler option (--as-needed) to ld and it is causing cmake to fail.
>  This is ok since g++ still seems to work properly.

Disable C in the project:

PROJECT(FOO CXX)

The default

PROJECT(FOO)

Will test for C and C++ compilers.

-- Jack


More information about the CMake mailing list