Skip to content

Commit da8e377

Browse files
authored
[BUILD] Link CoreFoundation on apple systems because some dependency packages require it. (#2655)
1 parent 2d077f8 commit da8e377

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ if(WITH_OTLP_HTTP_COMPRESSION)
131131
INTERFACE ENABLE_OTLP_COMPRESSION_PREVIEW)
132132
endif()
133133

134+
if(APPLE)
135+
target_link_libraries(opentelemetry_api INTERFACE "-framework CoreFoundation")
136+
endif()
137+
134138
include(${PROJECT_SOURCE_DIR}/cmake/pkgconfig.cmake)
135139

136140
if(OPENTELEMETRY_INSTALL)

0 commit comments

Comments
 (0)