mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 02:00:54 +00:00
Fixed: Compilation using WITH_STATIC_EXTERNAL under Mac OS X
This commit is contained in:
parent
c813eb4b12
commit
54b1709d14
1 changed files with 24 additions and 9 deletions
|
@ -7,15 +7,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
||||||
SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
|
SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
|
||||||
|
|
||||||
IF(WITH_STATIC)
|
|
||||||
FIND_PACKAGE(OpenSSL QUIET)
|
|
||||||
IF(OPENSSL_FOUND)
|
|
||||||
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
||||||
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
||||||
ENDIF(OPENSSL_FOUND)
|
|
||||||
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
||||||
ENDIF(WITH_STATIC)
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(common)
|
ADD_SUBDIRECTORY(common)
|
||||||
|
|
||||||
IF(WITH_RYZOM_CLIENT)
|
IF(WITH_RYZOM_CLIENT)
|
||||||
|
@ -26,6 +17,30 @@ IF(WITH_RYZOM_CLIENT)
|
||||||
ENDIF(WITH_LUA51)
|
ENDIF(WITH_LUA51)
|
||||||
FIND_PACKAGE(Luabind REQUIRED)
|
FIND_PACKAGE(Luabind REQUIRED)
|
||||||
FIND_PACKAGE(CURL REQUIRED)
|
FIND_PACKAGE(CURL REQUIRED)
|
||||||
|
|
||||||
|
IF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
||||||
|
SET(CURL_STATIC ON)
|
||||||
|
ENDIF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
||||||
|
|
||||||
|
IF(CURL_STATIC)
|
||||||
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
||||||
|
|
||||||
|
FIND_PACKAGE(OpenSSL QUIET)
|
||||||
|
|
||||||
|
IF(OPENSSL_FOUND)
|
||||||
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
||||||
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
||||||
|
ENDIF(OPENSSL_FOUND)
|
||||||
|
|
||||||
|
# CURL Macports version depends on libidn and libintl too
|
||||||
|
IF(APPLE)
|
||||||
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
||||||
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
||||||
|
|
||||||
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY} ${INTL_LIBRARY})
|
||||||
|
ENDIF(APPLE)
|
||||||
|
ENDIF(CURL_STATIC)
|
||||||
|
|
||||||
FIND_PACKAGE(Libwww REQUIRED)
|
FIND_PACKAGE(Libwww REQUIRED)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(client)
|
ADD_SUBDIRECTORY(client)
|
||||||
|
|
Loading…
Reference in a new issue