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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake