Skip to content

Commit dad15f2

Browse files
build(zonutils): 设置 zenutils 库为位置无关代码
- 在 utils/CMakeLists.txt 中添加 POSITION_INDEPENDENT_CODE 属性 - 确保 zenutils 库在不同平台上能够正确运行
1 parent de95eff commit dad15f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
add_library(zenutils logger.hpp logger.cpp uuid_utils.cpp ${CMAKE_SOURCE_DIR}/Astra-CacheServer/persistence/process.cpp)
1+
add_library(zenutils logger.hpp logger.cpp uuid_utils.cpp ${CMAKE_SOURCE_DIR}/Astra-CacheServer/persistence/process.cpp)
2+
set_target_properties(zenutils PROPERTIES POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)