Changed: Centralize Foundation framework search

--HG--
branch : develop
This commit is contained in:
kervala 2017-04-21 11:04:09 +02:00
parent 8dca705f73
commit 4a848b0771
2 changed files with 2 additions and 4 deletions

View file

@ -169,8 +169,7 @@ IF(WITH_RYZOM_CLIENT)
ENDIF() ENDIF()
IF(APPLE) IF(APPLE)
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation) TARGET_LINK_LIBRARIES(ryzom_client ${FOUNDATION_FRAMEWORK})
TARGET_LINK_LIBRARIES(ryzom_client ${FOUNDATION_LIBRARY})
ENDIF() ENDIF()
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} ${LUABIND_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} ${LUABIND_DEFINITIONS})

View file

@ -27,8 +27,7 @@ TARGET_LINK_LIBRARIES(ryzom_client_patcher
${CURL_LIBRARIES}) ${CURL_LIBRARIES})
IF(APPLE) IF(APPLE)
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation) TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_FRAMEWORK})
TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_LIBRARY})
ENDIF() ENDIF()
ADD_DEFINITIONS(${CURL_DEFINITIONS}) ADD_DEFINITIONS(${CURL_DEFINITIONS})