Skip to content

Commit

Permalink
fix for msvc builds (was missing winsockets lib)
Browse files Browse the repository at this point in the history
  • Loading branch information
rondiplomatico committed Jan 21, 2016
1 parent b7e7a11 commit 360572e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ target_compile_definitions(xml2 PUBLIC LIBXML_XPATH_ENABLED)
if (WIN32)
target_compile_definitions(xml2 PUBLIC _WINDOWS)
# Fix for nanoftp/nanohttp
if (MINGW)
target_link_libraries(xml2 PUBLIC ws2_32)
elseif(MSVC)
target_link_libraries(xml2 PUBLIC ws2_32)
if(MSVC)
target_compile_definitions(xml2 PRIVATE _CRT_SECURE_NO_WARNINGS WINVER=0x0600)
endif()
endif()
Expand Down

0 comments on commit 360572e

Please sign in to comment.