diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-29 01:42:45 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-29 01:42:45 +0200 |
commit | e993b1152df6ba7ca343e66263f2860e4c4ecee6 (patch) | |
tree | ceab190d91c3a6963be6f811b6d4d7f8fda839ab /application/CMakeLists.txt | |
parent | 877240524d3c3b1908281497acfd4795966d5a56 (diff) | |
download | MultiMC-e993b1152df6ba7ca343e66263f2860e4c4ecee6.tar MultiMC-e993b1152df6ba7ca343e66263f2860e4c4ecee6.tar.gz MultiMC-e993b1152df6ba7ca343e66263f2860e4c4ecee6.tar.lz MultiMC-e993b1152df6ba7ca343e66263f2860e4c4ecee6.tar.xz MultiMC-e993b1152df6ba7ca343e66263f2860e4c4ecee6.zip |
GH-1202 rebuild SSL certs on start on OSX - part 4
Diffstat (limited to 'application/CMakeLists.txt')
-rw-r--r-- | application/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/application/CMakeLists.txt b/application/CMakeLists.txt index 13a085d0..29012157 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 ######## |