mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-27 23:09:45 +00:00
Fix FindRakNet
Added ws2_32 for Windows Fixed path to headers
This commit is contained in:
parent
74c103ddc1
commit
1f0d6eba80
1 changed files with 13 additions and 3 deletions
|
@ -40,21 +40,31 @@ FIND_PATH (RakNet_INCLUDES raknet/RakPeer.h
|
||||||
$ENV{RAKNET_ROOT}/include
|
$ENV{RAKNET_ROOT}/include
|
||||||
)
|
)
|
||||||
|
|
||||||
|
MESSAGE(STATUS ${RakNet_INCLUDES})
|
||||||
|
MESSAGE(STATUS ${RakNet_LIBRARY_RELEASE})
|
||||||
|
|
||||||
IF(RakNet_INCLUDES AND RakNet_LIBRARY_RELEASE)
|
IF(RakNet_INCLUDES AND RakNet_LIBRARY_RELEASE)
|
||||||
SET(RakNet_FOUND TRUE)
|
SET(RakNet_FOUND TRUE)
|
||||||
ENDIF(RakNet_INCLUDES AND RakNet_LIBRARY_RELEASE)
|
ENDIF(RakNet_INCLUDES AND RakNet_LIBRARY_RELEASE)
|
||||||
|
|
||||||
IF(RakNet_FOUND)
|
IF(RakNet_FOUND)
|
||||||
SET(RakNet_INCLUDES ${RakNet_INCLUDES})
|
SET(RakNet_INCLUDES ${RakNet_INCLUDES}/raknet)
|
||||||
|
|
||||||
|
|
||||||
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
||||||
SET(RakNet_LIBRARY optimized ${RakNet_LIBRARY_RELEASE} debug ${RakNet_LIBRARY_DEBUG})
|
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)
|
||||||
|
ENDIF(WIN32)
|
||||||
ELSE()
|
ELSE()
|
||||||
# if there are no configuration types and CMAKE_BUILD_TYPE has no value
|
# if there are no configuration types and CMAKE_BUILD_TYPE has no value
|
||||||
# then just use the release libraries
|
# then just use the release libraries
|
||||||
SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} )
|
SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} )
|
||||||
|
IF(WIN32)
|
||||||
|
SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} -lws2_32)
|
||||||
|
ENDIF(WIN32)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT RakNet_FIND_QUIETLY)
|
IF(NOT RakNet_FIND_QUIETLY)
|
||||||
MESSAGE(STATUS "Found RakNet: ${RakNet_LIBRARIES}")
|
MESSAGE(STATUS "Found RakNet: ${RakNet_LIBRARIES}")
|
||||||
ENDIF(NOT RakNet_FIND_QUIETLY)
|
ENDIF(NOT RakNet_FIND_QUIETLY)
|
||||||
|
|
Loading…
Reference in a new issue