[CMake] disable compiler test
Juan Sanchez
Juan.Sanchez at amd.com
Mon Sep 10 15:40:38 EDT 2007
Hi Bill,
Currently we are using gcc 3.4.0 and 4.1.1. Our systems are ancient and
are using Redhat Enterprise 3 or 4. The version of ld is too old, and
it is being passed a flag by gcc 4.1.1 it doesn't recognize. Curiously
g++ 4.1.1 doesn't have this problem. Neither does gcc 4.2.0.
The only "C" code being compiled for this particular project is the
CMake tests. I need to disable the tests so I can proceed to
demonstrate cmake to my colleagues. I will fix the compiler issue later
with our systems team.
Thanks,
Juan
Bill Hoffman wrote:
> 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
>
>
>
--
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395
More information about the CMake
mailing list