[CMake] How do you determine what compiler is being used?

Bartlett, Roscoe A rabartl at sandia.gov
Wed Dec 3 17:23:05 EST 2008


Hello,

How can determine what general type of compiler is being used?  For example, how can we determine if our project is being configured to use the Sun CC compiler?  In C++ code I can just check for the define __sun but how can I get this info in my CMakeLists.txt file?  I could use try_compile(...) to figure this out but is there already a way to do this?

- Ross


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081203/e9584e6c/attachment.htm>


More information about the CMake mailing list