File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 11include (FetchContent)
22
3- if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" )
4- set (TLS_DIALECT desc)
5- elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" )
6- set (TLS_DIALECT gnu2)
7- else ()
8- message (FATAL_ERROR "Only aarch64 and x86-64 are supported (found: ${CMAKE_SYSTEM_PROCESSOR} )" )
9- endif ()
10-
113FetchContent_Declare(customlabels
124 GIT_REPOSITORY https://github.com/DataDog/custom-labels .git
135 GIT_TAG elsa/add-process-storage
146)
157
168FetchContent_MakeAvailable(customlabels)
179
18- add_compile_options (
19- -fPIC
20- -ftls-model=global -dynamic
21- -mtls-dialect=${TLS_DIALECT}
22- )
23-
2410add_library (customlabels SHARED
2511 ${customlabels_SOURCE_DIR} /src/customlabels.c
2612)
You can’t perform that action at this time.
0 commit comments