diff --git a/CMakeLists.txt b/CMakeLists.txt index 1859493835..b16bdb803c 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()