From 4a848b0771feb404d38d095fe5e98f68e748a395 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 21 Apr 2017 11:04:09 +0200 Subject: [PATCH] Changed: Centralize Foundation framework search --HG-- branch : develop --- code/ryzom/client/src/CMakeLists.txt | 3 +-- code/ryzom/tools/client/client_patcher/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/ryzom/client/src/CMakeLists.txt b/code/ryzom/client/src/CMakeLists.txt index 4c109df7a..996a08efa 100644 --- a/code/ryzom/client/src/CMakeLists.txt +++ b/code/ryzom/client/src/CMakeLists.txt @@ -169,8 +169,7 @@ IF(WITH_RYZOM_CLIENT) ENDIF() IF(APPLE) - FIND_LIBRARY(FOUNDATION_LIBRARY Foundation) - TARGET_LINK_LIBRARIES(ryzom_client ${FOUNDATION_LIBRARY}) + TARGET_LINK_LIBRARIES(ryzom_client ${FOUNDATION_FRAMEWORK}) ENDIF() ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} ${LUABIND_DEFINITIONS}) diff --git a/code/ryzom/tools/client/client_patcher/CMakeLists.txt b/code/ryzom/tools/client/client_patcher/CMakeLists.txt index e3bc7b3d7..ad2eeb629 100644 --- a/code/ryzom/tools/client/client_patcher/CMakeLists.txt +++ b/code/ryzom/tools/client/client_patcher/CMakeLists.txt @@ -27,8 +27,7 @@ TARGET_LINK_LIBRARIES(ryzom_client_patcher ${CURL_LIBRARIES}) IF(APPLE) - FIND_LIBRARY(FOUNDATION_LIBRARY Foundation) - TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_LIBRARY}) + TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_FRAMEWORK}) ENDIF() ADD_DEFINITIONS(${CURL_DEFINITIONS})