[CMake] How to use icc on linux with cmake.

Filipe Sousa natros at gmail.com
Tue Apr 17 13:47:05 EDT 2007


Alan W. Irwin wrote:
> On 2007-04-17 18:34+0200 cedric wrote:
> 
> 
> I don't have any experience with icc, but I understand it is a C++
> compiler rather than a C compiler.  For C++ compilers look at
> CMakeDetermineCXXCompiler.cmake. icc is not one of the list (c++ g++ CC aCC
> cl bcc xlC) of C++ compilers that are searched for automatically by cmake.
> So you have to specify it.  Looking near the top of that file, that is done
> using the CXX environment variable (which can include compiler options).
> See also comments about the CXX environment variable in
> http://www.cmake.org/Wiki/CMake_Useful_Variables.
> 
> My understanding is gcc.cmake is only used for either gcc or g++.  Similarly,
> I believe Linux-icpc.cmake would only be included if you specified
> the icpc compiler (which I believe is the name of an older Intel compiler?).

CC=icc CXX=icpc cmake ......

Filipe Sousa


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070417/d63f7c12/signature.pgp


More information about the CMake mailing list