fix: userOperTest in linux (#30363)

Co-authored-by: taos-support <it@taosdata.com>
This commit is contained in:
Linhe Huo 2025-03-23 00:46:55 +08:00 committed by GitHub
parent 685fa2c42d
commit 8ad8bc741a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -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(