From dfe60b5d43d9a1043c1dc9cec96c9fa299aac324 Mon Sep 17 00:00:00 2001 From: peefy Date: Thu, 5 Sep 2024 17:26:00 +0800 Subject: [PATCH] add core services link on mac Signed-off-by: peefy --- cpp/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index f633b5f..a582129 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -48,6 +48,8 @@ foreach(EXE IN LISTS EXECUTABLES) target_link_libraries(${EXE} PRIVATE userenv ws2_32 bcrypt) endif() if(APPLE) + find_library(CORESERVICES_LIB CoreServices) + target_link_libraries(${EXE} PRIVATE ${CORESERVICES_LIB}) target_link_libraries(${EXE} PRIVATE "-framework CoreFoundation -framework Security") endif() endforeach()