Skip to content

Commit

Permalink
add core services link on mac
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 5, 2024
1 parent 553aa89 commit dfe60b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dfe60b5

Please sign in to comment.