[CMake] disable compiler test

Bill Hoffman bill.hoffman at kitware.com
Mon Sep 10 15:26:42 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.
>   
Disabling the test is a bad idea, as cmake will use the same code to 
create your makefiles and your
stuff won't work either.  (That is why the test is done, so you find out 
sooner than later.)   Do you
have LDFLAGS, CFLAGS, CXXFLAGS set in your environment?

-Bill



More information about the CMake mailing list