forked from teamnwah/openmw-tes3coop
[Build] Fixed linker issue
This commit is contained in:
parent
fd845198ad
commit
b47260f9dc
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue