Merge pull request #3015 from aytekinar/3012-gcc-fix

Fix gcc build problem
This commit is contained in:
Luca Boccassi 2018-03-21 19:37:31 +00:00 committed by GitHub
commit 0e1a9a5252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")