From: Mathias Froehlich Date: Sun, 11 Sep 2011 10:13:55 +0000 (+0200) Subject: cmake: Use ws2_32.lib instead of the WINSOCK_LIBRARY variable. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f4b45eca7e0e03ff0354ebb9a544c4cc65a3c407;p=flightgear.git cmake: Use ws2_32.lib instead of the WINSOCK_LIBRARY variable. Fixup for commit 549c5eccb9e18b6db2f469ca9d38e35dda4e33f1. Do not refer to the no longer existing WINSOCK_LIBRARY variable. Instead, at this single place where it is used, just use ws2_32.lib. --- diff --git a/CMakeModules/FindSimGear.cmake b/CMakeModules/FindSimGear.cmake index 7481fadb4..cd966f0d6 100644 --- a/CMakeModules/FindSimGear.cmake +++ b/CMakeModules/FindSimGear.cmake @@ -159,7 +159,7 @@ if(${SIMGEAR_LIBRARIES} STREQUAL "SIMGEAR_LIBRARIES-NOTFOUND") ${ZLIB_LIBRARY}) if(WIN32) - list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ${WINSOCK_LIBRARY}) + list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ws2_32.lib) endif(WIN32) if(NOT MSVC)