From e993b1152df6ba7ca343e66263f2860e4c4ecee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 29 Sep 2015 01:42:45 +0200 Subject: [PATCH] GH-1202 rebuild SSL certs on start on OSX - part 4 --- application/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/CMakeLists.txt b/application/CMakeLists.txt index 13a085d04..29012157c 100644 --- a/application/CMakeLists.txt +++ b/application/CMakeLists.txt @@ -344,6 +344,16 @@ qt5_add_resources(MULTIMC_RESOURCES ${MULTIMC_QRCS}) add_executable(MultiMC MACOSX_BUNDLE WIN32 ${MULTIMC_SOURCES} ${MULTIMC_UI} ${MULTIMC_RESOURCES} ${MULTIMC_RCS}) target_link_libraries(MultiMC MultiMC_logic xz-embedded unpack200 iconfix MultiMC_util ${QUAZIP_LIBRARIES} hoedown rainbow) +if(APPLE) +find_library(OSX_CORE_FOUNDATION CoreFoundation) +find_library(OSX_SECURITY Security) +if (NOT OSX_CORE_FOUNDATION OR NOT OSX_SECURITY) + message(FATAL_ERROR "OSX framerworks not found: CoreFoundation, Security") +endif() + +target_link_libraries(MultiMC ${OSX_CORE_FOUNDATION} ${OSX_SECURITY}) +endif() + ################################ INSTALLATION AND PACKAGING ################################ ######## Install ########