Skip to content

Commit bb3889c

Browse files
author
elsa
committed
fix: try to update cmake deps
1 parent 3c4760a commit bb3889c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

cmake/deps/customlabels.cmake

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
2+
3+
include(FetchContent)
4+
5+
FetchContent_Declare(customlabels
6+
URL https://github.com/DataDog/custom-labels.git
7+
GIT_TAG origin/elsa/custom-labels-for-trace-corr
8+
)
9+
10+
FetchContent_MakeAvailable(customlabels)
11+
12+
add_library(customlabels SHARED
13+
${custom_labels_SOURCE_DIR}/customlabels.c
14+
)
15+
16+
target_include_directories(customlabels
17+
PUBLIC
18+
${custom_labels_SOURCE_DIR}
19+
)
20+
endif()

0 commit comments

Comments
 (0)