From f4b45eca7e0e03ff0354ebb9a544c4cc65a3c407 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 11 Sep 2011 12:13:55 +0200 Subject: [PATCH] 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. --- CMakeModules/FindSimGear.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)