[CMake] Not getting the CXX/CC I requested with v 2.4.5

Bill Hoffman bill.hoffman at kitware.com
Mon Nov 12 15:30:54 EST 2007


Alan W. Irwin wrote:
> On 2007-11-12 09:59-0500 Pugmire, Dave wrote:
> 
>>
>> Hi,
>> I'm experiencing some weirdness trying to configure on a cray.
>> I do the following:
>> env CXX=g++ CC=gcc ./bootstrap
>> configure seems to report that it's using g++ to do the checks.
>> However, when I do a make, it's using a different compiler.
> 

Most likely the build tree has already been configured once with a 
different compiler.  Remove the CMakeCache.txt file, and the CMakeFiles 
directory, or if you are doing an out of source build, remove the entire 
build tree.

-Bill


More information about the CMake mailing list