diff --git a/CMakeLists.txt b/CMakeLists.txt index 18594938..b16bdb80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -705,7 +705,7 @@ if(LIBZMQ_WERROR) zmq_check_cxx_flag_prepend("/WX") else() zmq_check_cxx_flag_prepend("-Werror") - if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + if(${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro") zmq_check_cxx_flag_prepend("-errwarn=%all") endif() endif()