]> git.mxchange.org Git - flightgear.git/commitdiff
cmake: Use ws2_32.lib instead of the WINSOCK_LIBRARY variable.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 11 Sep 2011 10:13:55 +0000 (12:13 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 11 Sep 2011 10:17:20 +0000 (12:17 +0200)
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

index 7481fadb4f3f34fe54872f6eb30de61cf66084ba..cd966f0d6d41300a04a53913ed4930c83d3b402c 100644 (file)
@@ -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)