Skip to content

Commit

Permalink
Problem: missing Ws2_32.lib when cross compiling
Browse files Browse the repository at this point in the history
Solution: use lower case ws2_32.lib to enable cross compilation
from platforms with case-sensitive filesystems.

When cross compiling the tests with Mingw-w64, CMake cannot
locate Ws2_32.lib
  • Loading branch information
ibancg committed Jun 14, 2017
1 parent 10a9ba0 commit 2c4e536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ if(WIN32)
add_definitions(-DZMQ_CUSTOM_PLATFORM_HPP)
add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
# Same name on 64bit systems
link_libraries(Ws2_32.lib)
link_libraries(ws2_32.lib)
endif()

# add library and include dirs for all targets
Expand Down

0 comments on commit 2c4e536

Please sign in to comment.