Skip to content

Commit cfc6efe

Browse files
authored
Merge pull request microsoft#1523 from Milerius/patch-1
[MacOS]: fix wrong linking of Apple Frameworks
2 parents 7fbb08c + dbb5563 commit cfc6efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ endif()
9494
if(CPPREST_PPLX_IMPL STREQUAL "apple")
9595
find_library(COREFOUNDATION CoreFoundation "/")
9696
find_library(SECURITY Security "/")
97-
target_link_libraries(cpprest PUBLIC ${COREFOUNDATION} ${SECURITY})
97+
target_link_libraries(cpprest PRIVATE ${COREFOUNDATION} ${SECURITY})
9898
target_sources(cpprest PRIVATE pplx/pplxapple.cpp pplx/pplx.cpp pplx/threadpool.cpp ../include/pplx/threadpool.h)
9999
if(CPPREST_INSTALL_HEADERS)
100100
install(FILES ../include/pplx/threadpool.h DESTINATION include/pplx)

0 commit comments

Comments
 (0)