File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,27 @@ FetchContent_Declare(customlabels
55 GIT_TAG elsa/add-process-storage
66)
77
8+ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" )
9+ set (TLS_DIALECT desc)
10+ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" )
11+ set (TLS_DIALECT gnu2)
12+ else ()
13+ message (FATAL_ERROR "Only aarch64 and x86-64 are supported (found: ${CMAKE_SYSTEM_PROCESSOR} )" )
14+ endif ()
15+
816FetchContent_MakeAvailable(customlabels)
917
1018add_library (customlabels SHARED
1119 ${customlabels_SOURCE_DIR} /src/customlabels.c
1220)
1321
22+ target_compile_options (customlabels PRIVATE
23+ -g
24+ -fPIC
25+ -ftls-model=global -dynamic
26+ -mtls-dialect=${TLS_DIALECT}
27+ )
28+
1429target_include_directories (customlabels
1530PUBLIC
1631 ${customlabels_SOURCE_DIR} /src
You can’t perform that action at this time.
0 commit comments