Skip to content

Commit 0c9221d

Browse files
Fix linker errors when building with cmake, TLS and -Wl,--no-undefined
Part of #247 Signed-off-by: Andreas Stieger <Andreas.Stieger@gmx.de>
1 parent 1597493 commit 0c9221d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ IF(ENABLE_TLS)
206206
# Produce object files that contain debug info.
207207
target_compile_options(valkey_tls PRIVATE /Z7)
208208
endif()
209-
TARGET_LINK_LIBRARIES(valkey_tls PRIVATE OpenSSL::SSL)
209+
TARGET_LINK_LIBRARIES(valkey_tls PRIVATE valkey OpenSSL::SSL)
210210
if(WIN32 OR CYGWIN)
211211
target_link_libraries(valkey_tls PRIVATE valkey)
212212
endif()

0 commit comments

Comments
 (0)