Skip to content

Commit dfe60b5

Browse files
committed
add core services link on mac
Signed-off-by: peefy <xpf6677@163.com>
1 parent 553aa89 commit dfe60b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ foreach(EXE IN LISTS EXECUTABLES)
4848
target_link_libraries(${EXE} PRIVATE userenv ws2_32 bcrypt)
4949
endif()
5050
if(APPLE)
51+
find_library(CORESERVICES_LIB CoreServices)
52+
target_link_libraries(${EXE} PRIVATE ${CORESERVICES_LIB})
5153
target_link_libraries(${EXE} PRIVATE "-framework CoreFoundation -framework Security")
5254
endif()
5355
endforeach()

0 commit comments

Comments
 (0)