From b47260f9dca30a5f365475a853b85f283b277800 Mon Sep 17 00:00:00 2001 From: Battlerax Date: Wed, 22 Feb 2017 15:49:46 -0600 Subject: [PATCH] [Build] Fixed linker issue --- cmake/FindRakNet.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindRakNet.cmake b/cmake/FindRakNet.cmake index 7e3dd7bc4..9f83cc641 100644 --- a/cmake/FindRakNet.cmake +++ b/cmake/FindRakNet.cmake @@ -54,14 +54,14 @@ IF(RakNet_FOUND) IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) SET(RakNet_LIBRARY optimized ${RakNet_LIBRARY_RELEASE} debug ${RakNet_LIBRARY_DEBUG}) IF(WIN32) - SET(RakNet_LIBRARY optimized ${RakNet_LIBRARY_RELEASE} debug ${RakNet_LIBRARY_DEBUG} -lws2_32) + SET(RakNet_LIBRARY optimized ${RakNet_LIBRARY_RELEASE} debug ${RakNet_LIBRARY_DEBUG} ws2_32.lib) ENDIF(WIN32) ELSE() # if there are no configuration types and CMAKE_BUILD_TYPE has no value # then just use the release libraries SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} ) IF(WIN32) - SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} -lws2_32) + SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} ws2_32.lib) ENDIF(WIN32) ENDIF()