Changed: Winsock definition in root CMakeLists.txt

This commit is contained in:
kervala 2010-09-11 19:42:39 +02:00
parent 1a54275a1d
commit 8948fa73c9
4 changed files with 5 additions and 15 deletions

View file

@ -96,6 +96,11 @@ FIND_PACKAGE(LibXml2 REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(Jpeg)
IF(WIN32)
INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
SET(WINSOCK2_LIB ws2_32.lib)
ENDIF(WIN32)
IF(WITH_STATIC)
# libxml2 could need winsock2 library
SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} ${WINSOCK2_LIB} -DLIBXML_STATIC)

View file

@ -89,11 +89,6 @@ IF(UNIX)
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION bin)
ENDIF(UNIX)
IF(WIN32)
INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
SET(WINSOCK2_LIB ws2_32.lib)
ENDIF(WIN32)
IF(NOT WIN32)
NL_CONFIGURE_CHECKS()
ENDIF(NOT WIN32)

View file

@ -94,11 +94,6 @@ NL_SETUP_BUILD()
FIND_PACKAGE(NeLMISC)
FIND_PACKAGE(NeLNET)
IF(WIN32)
INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
SET(WINSOCK2_LIB ws2_32.lib)
ENDIF(WIN32)
NL_SETUP_BUILD_FLAGS()
SET(ETCDIR "${NL_ETC_PREFIX}/nelns")

View file

@ -92,11 +92,6 @@ IF(BUILD_CLIENT)
ENDIF(ENABLE_SOUND)
ENDIF(BUILD_CLIENT)
IF(WIN32)
INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
SET(WINSOCK2_LIB ws2_32.lib)
ENDIF(WIN32)
NL_SETUP_BUILD_FLAGS()
ADD_DEFINITIONS(-DSNOWBALLS_CONFIG="${SNOWBALLS_CONFIG_FILE}/" -DSNOWBALLS_STATE="${SNOWBALLS_LOG_FILE}/" -DSNOWBALLS_LOGS="${SNOWBALLS_LOG_FILE}/")