From 8ad8bc741a935f22dc4a6917bd3251ec25fa55e2 Mon Sep 17 00:00:00 2001 From: Linhe Huo Date: Sun, 23 Mar 2025 00:46:55 +0800 Subject: [PATCH] fix: userOperTest in linux (#30363) Co-authored-by: taos-support --- source/client/test/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/client/test/CMakeLists.txt b/source/client/test/CMakeLists.txt index 0bbe5cb53f..870d979eca 100644 --- a/source/client/test/CMakeLists.txt +++ b/source/client/test/CMakeLists.txt @@ -36,10 +36,17 @@ TARGET_LINK_LIBRARIES( #) ADD_EXECUTABLE(userOperTest ../../../tests/script/api/passwdTest.c) +if (TD_WINDOWS) TARGET_LINK_LIBRARIES( userOperTest PUBLIC ${TAOS_NATIVE_LIB_STATIC} ) +else() +TARGET_LINK_LIBRARIES( + userOperTest + PUBLIC ${TAOS_NATIVE_LIB} +) +endif() ADD_EXECUTABLE(stmt2Test stmt2Test.cpp) TARGET_LINK_LIBRARIES(