Skip to content

Commit

Permalink
Merge pull request zeromq#2583 from timou/wincmake
Browse files Browse the repository at this point in the history
Suppress linker warning 4221 for MSVC
  • Loading branch information
c-rack authored May 20, 2017
2 parents 92339a4 + 293a182 commit ec56eaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ if (BUILD_STATIC)
endif()

if (MSVC)
# Suppress linker warnings caused by #ifdef omission
# of file content.
set( CMAKE_STATIC_LINKER_FLAGS /ignore:4221 )
if (BUILD_SHARED)
add_library (libzmq SHARED ${sources} ${public_headers} ${html-docs} ${readme-docs} ${CMAKE_CURRENT_BINARY_DIR}/NSIS.template.in)
target_link_libraries (libzmq ${OPTIONAL_LIBRARIES})
Expand Down

0 comments on commit ec56eaa

Please sign in to comment.