Re: [CMake] Intel compilers

2012-05-11 Thread Mohammad Mirzadeh
> You generally need to set CC, CXX, LD, and AR. I found that in some cases > even that didn't work. I use this: > option(INTEL_CC "Use the Intel compiler." OFF) > if (INTEL_CC) > find_program(CMAKE_C_COMPILER NAMES icc) > find_program(CMAKE_CXX_COMPILER NAMES icpc) > find_program(CMAKE_AR NAME

[CMake] Intel compilers

2012-05-10 Thread Mohammad Mirzadeh
Hi, I have just started using CMake for my projects and have some problems getting it do exactly the things I want. So these are couple of questions I have: 1) How can I change the compiler from GNU g++ to my preferred compiler, in this case intel's icc? I have tried CC=icc; ccmake ../ but that a