Fix gcc build problem

Fixed gcc-related build problem resulting from `-errwarn=%all` switch.

Fixes #3012.
parent 0b997109
...@@ -298,7 +298,9 @@ endif () ...@@ -298,7 +298,9 @@ endif ()
if (LIBZMQ_WERROR) if (LIBZMQ_WERROR)
zmq_check_cxx_flag_prepend ("-Werror") zmq_check_cxx_flag_prepend ("-Werror")
zmq_check_cxx_flag_prepend ("-errwarn=%all") if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
zmq_check_cxx_flag_prepend ("-errwarn=%all")
endif()
endif () endif ()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc") if (CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment