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,8 +298,10 @@ endif ()
if (LIBZMQ_WERROR) if (LIBZMQ_WERROR)
zmq_check_cxx_flag_prepend ("-Werror") zmq_check_cxx_flag_prepend ("-Werror")
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
zmq_check_cxx_flag_prepend ("-errwarn=%all") zmq_check_cxx_flag_prepend ("-errwarn=%all")
endif() endif()
endif ()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc") if (CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc")
zmq_check_cxx_flag_prepend ("-mcpu=v9") zmq_check_cxx_flag_prepend ("-mcpu=v9")