[CMake] Test for ICC

Mike Jackson imikejackson at gmail.com
Tue Dec 4 15:12:57 EST 2007


I need to test for icc/icpc (The intel compiler). What would be the  
best way to do that?

I could do:
IF (NOT CMAKE_COMPILER_IS_GNUCC)

but I want to specifically look for the intel compiler. I guess I  
could just exec icc and see what comes back. Checking for $CC=icc  
might be useful, but mine is set to /opt/intel/cc/10.0.023/bin/icc..

Any suggestions would be good.

The underlying reason is because I am trying to compile expat with  
cmake and icc and I get an error about "invalid combination of type  
specifiers:
typedef __off_t off_t

Thanks
--
Mike Jackson
imikejackson & gmail * com





More information about the CMake mailing list