Skip to content

Commit 1e3ccf3

Browse files
committed
fix link error with openssl(static) on windows
1 parent af70fda commit 1e3ccf3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/simple/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ ADD_EXECUTABLE (simple-test
66
TARGET_LINK_LIBRARIES (simple-test
77
clickhouse-cpp-lib
88
)
9+
10+
IF (MSVC)
11+
TARGET_LINK_LIBRARIES (simple-test Crypt32)
12+
ENDIF()

ut/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ TARGET_LINK_LIBRARIES (clickhouse-cpp-ut
4343

4444
IF (MSVC)
4545
TARGET_COMPILE_OPTIONS(clickhouse-cpp-ut PRIVATE /bigobj)
46+
TARGET_LINK_LIBRARIES (clickhouse-cpp-ut Crypt32)
4647
ENDIF()

0 commit comments

Comments
 (0)