[CMake] disable compiler test

Juan Sanchez Juan.Sanchez at amd.com
Mon Sep 10 16:21:07 EDT 2007


In a distributed environment of C++ projects, with multiple external
dependencies, it is generally a good practice to stick with one compiler
version until all of the dependencies can be updated to the newer
compiler version.

I'm in the process of notifying the guy who cares about these types of
things that our installation of 4.1.1 is lacking and that he should
start testing a newer compiler.  Alternatively, we may just need to
update ld.  Thankfully, 3.4.0 is still our baseline compiler.

Juan

Bill Hoffman wrote:
> Juan Sanchez wrote:
>> 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.
>>   
> Why not use gcc 4.2.0?
> 
> setenv CC gcc-4.2
> setenv CXX g++4.1.1
> cmake ..
> 
> Or, you can use the CXX option in the project command.
> 
> -Bill
> 
> 
> 


-- 
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395




More information about the CMake mailing list