Skip to content

Commit 37689f6

Browse files
committed
fix session cpp cmakelist
1 parent 2c62494 commit 37689f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

iotdb-client/client-cpp/src/main/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,10 @@ ELSE()
6464
ENDIF()
6565

6666
# Link with Thrift static library
67-
TARGET_LINK_LIBRARIES(iotdb_session ${THRIFT_STATIC_LIB} ssl crypto)
67+
target_link_libraries(iotdb_session
68+
PUBLIC
69+
OpenSSL::SSL
70+
OpenSSL::Crypto
71+
PRIVATE
72+
${THRIFT_STATIC_LIB}
73+
)

0 commit comments

Comments
 (0)