Skip to content

Commit

Permalink
[BUILD] Link CoreFoundation on apple systems because some dependency …
Browse files Browse the repository at this point in the history
…packages require it. (#2655)
  • Loading branch information
owent authored May 6, 2024
1 parent 2d077f8 commit da8e377
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ if(WITH_OTLP_HTTP_COMPRESSION)
INTERFACE ENABLE_OTLP_COMPRESSION_PREVIEW)
endif()

if(APPLE)
target_link_libraries(opentelemetry_api INTERFACE "-framework CoreFoundation")
endif()

include(${PROJECT_SOURCE_DIR}/cmake/pkgconfig.cmake)

if(OPENTELEMETRY_INSTALL)
Expand Down

0 comments on commit da8e377

Please sign in to comment.