From b7ba4c5cf63e20d0f1c30a3f2393c12dde5eb7c5 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Fri, 2 Feb 2024 13:22:16 -0500 Subject: Link api against CoreServices on mac --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb942d19..183e24c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,11 @@ add_subdirectory(vendor/fmt EXCLUDE_FROM_ALL) set_target_properties(fmt PROPERTIES POSITION_INDEPENDENT_CODE ON) target_link_libraries(binaryninjaapi PUBLIC fmt::fmt) +if(APPLE) + find_library(CORE_SERVICES_LIBRARY NAMES CoreServices) + target_link_libraries(binaryninjaapi PRIVATE ${CORE_SERVICES_LIBRARY}) +endif() + set_target_properties(binaryninjaapi PROPERTIES CXX_STANDARD 17 CXX_VISIBILITY_PRESET hidden -- cgit v1.3.1