From c7aa66843592b2a86f6af37ebbca573fc2ada96d Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Tue, 16 Apr 2024 12:18:57 +0000 Subject: [PATCH] fix other platform error --- source/util/CMakeLists.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/source/util/CMakeLists.txt b/source/util/CMakeLists.txt index 522a62fcff..5ee0740eef 100644 --- a/source/util/CMakeLists.txt +++ b/source/util/CMakeLists.txt @@ -27,12 +27,24 @@ target_link_directories( util PUBLIC "${TD_SOURCE_DIR}/contrib/lzma2" ) -target_link_libraries( + + +if (TD_LINUX) + target_link_libraries( + util + PUBLIC os common + PUBLIC lz4_static fast-lzma2 + PUBLIC api cjson geos_c TSZ + + ) +else() + target_link_libraries( util PUBLIC os common - PUBLIC lz4_static fast-lzma2 + PUBLIC lz4_static PUBLIC api cjson geos_c TSZ -) + ) +endif() if(${BUILD_TEST}) ADD_SUBDIRECTORY(test)