未验证 提交 cfc6efe6 编写于 作者: C Charlie Barto 提交者: GitHub

Merge pull request #1523 from Milerius/patch-1

[MacOS]: fix wrong linking of Apple Frameworks
......@@ -94,7 +94,7 @@ endif()
if(CPPREST_PPLX_IMPL STREQUAL "apple")
find_library(COREFOUNDATION CoreFoundation "/")
find_library(SECURITY Security "/")
target_link_libraries(cpprest PUBLIC ${COREFOUNDATION} ${SECURITY})
target_link_libraries(cpprest PRIVATE ${COREFOUNDATION} ${SECURITY})
target_sources(cpprest PRIVATE pplx/pplxapple.cpp pplx/pplx.cpp pplx/threadpool.cpp ../include/pplx/threadpool.h)
if(CPPREST_INSTALL_HEADERS)
install(FILES ../include/pplx/threadpool.h DESTINATION include/pplx)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册