0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Fix gcc build problem

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

Fixes #3012.
This commit is contained in:
Arda Aytekin 2018-03-21 18:21:39 +01:00
parent 0b99710949
commit 6fa9362351
No known key found for this signature in database
GPG Key ID: 5F03B51671089871

View File

@ -298,7 +298,9 @@ endif ()
if (LIBZMQ_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 ()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc")