[CMake] setting xcode's compiler with cmake

Benson Limketkai bensonl at AI.SRI.COM
Mon Jun 7 10:56:33 EDT 2010


Hi Bill,

Thanks for your response.  That thread only indicates ways to change the 
GCC version.  Does that mean there's no way to completely change the 
compiler?  I'm trying to use the Intel C++ compiler (which appears in 
the drop-down in Xcode).

thanks,
Benson

Bill Hoffman wrote:
> On 6/4/2010 6:18 PM, Benson Limketkai wrote:
>> Hi,
>>
>> When I use the Xcode generator, the CMAKE_CXX_COMPILER flag is ignored
>> inside Xcode. It always is at: "System default (GCC 4.2)" when I look at
>> the Compiler Version under the project build settings.
>>
> 
> See here:
> 
> http://www.cmake.org/pipermail/cmake/2010-March/036188.html
>> I've tried:
>>
>> cmake -G Xcode -DCMAKE_BUILD_TYPE:STRING=Debug
>> -DCMAKE_CXX_COMPILER:FILEPATH=/opt/intel/Compiler/11.1/076/bin/ia32/icpc
>>
>> and:
>>
>> CXX=/opt/intel/Compiler/11.1/076/bin/ia32/icpc cmake -G Xcode
>> -DCMAKE_BUILD_TYPE:STRING=Debug
>>
>> I'm using Cmake 2.6.4 and Xcode 3.2.2
>>
>> Any ideas?
>>
>> Thanks,
>> Benson
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
> 
> 


More information about the CMake mailing list