From a14de1c4ef5906f68e890635ae56aa4db2c0cde1 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Wed, 8 Jan 2014 21:05:57 -0800 Subject: Fixed build --- tests/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 61fa7120..feee7d2c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,5 +10,10 @@ find_library(SECURITYFRAMEWORK NAMES Security) find_library(CORESERVICESFRAMEWORK NAMES CoreServices) add_executable (tests main.mm test-all.mm) -target_link_libraries (tests MailCore z etpan xml2 icudata icui18n icuuc sasl2 iconv tidy ctemplate ssl crypto +if(APPLE) + set(ICU_LIBRARIES icucore) +else() + set(ICU_LIBRARIES icudata icui18n icuuc) +endif() +target_link_libraries (tests MailCore z etpan xml2 sasl2 iconv tidy ctemplate ssl crypto ${ICU_LIBRARIES} ${FOUNDATIONFRAMEWORK} ${SECURITYFRAMEWORK} ${CORESERVICESFRAMEWORK}) -- cgit v1.2.3