Skip to content

Commit

Permalink
Merge pull request #31 from open-telemetry/main
Browse files Browse the repository at this point in the history
[BUILD] Link CoreFoundation on apple systems because some dependency …
  • Loading branch information
malkia authored May 6, 2024
2 parents 5123f2a + da8e377 commit 4cd9619
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 4cd9619

Please sign in to comment.