[CMake] Sun compiler
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jun 13 05:02:39 EDT 2011
On Friday 10 June 2011, Benjamin Peterson wrote:
> Hi,
> I'm trying to set some special flags for Sun's compiler. Does cmake set a
> flag for it like it does for MSVC or COMPILER_IS_GNUCC?
You can always test ${CMAKE_CXX_COMPILER_ID} (or CMAKE_C_COMPILER_ID). It has
the value which is printed during the initial cmake run when cmake says
"Determining compiler ID".
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "....")
...
endif()
Alex
More information about the CMake
mailing list