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



_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to