diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c16b53a7968cf713fe8aa02bcdb9811d0638f3a8..9402905a944419e853aeeee8bfdbb55a690d7580 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -300,7 +300,7 @@ set_source_files_compile_flags(${server_sources}) add_library(server STATIC ${server_sources}) add_dependencies(server build_bundled_libs) target_link_libraries(server core coll http_parser bit uri swim swim_udp - swim_ev crypto mpstream crc32 tzcode) + swim_ev tcrypto mpstream crc32 tzcode) if(EMBED_LUAZLIB) target_link_libraries(server ${ZLIB_LIBRARIES}) diff --git a/src/lib/crypto/CMakeLists.txt b/src/lib/crypto/CMakeLists.txt index afdac0891e863a18b23c94f2d8e5b967b122b1a3..0c2d31125ae2763b6d33d92d7c8bff946a824160 100644 --- a/src/lib/crypto/CMakeLists.txt +++ b/src/lib/crypto/CMakeLists.txt @@ -1,9 +1,9 @@ set(lib_sources crypto.c) set_source_files_compile_flags(${lib_sources}) -add_library(crypto STATIC ${lib_sources}) -target_link_libraries(crypto ${OPENSSL_LIBRARIES} core) +add_library(tcrypto STATIC ${lib_sources}) +target_link_libraries(tcrypto ${OPENSSL_LIBRARIES} core) if (ENABLE_BUNDLED_OPENSSL) - add_dependencies(crypto bundled-openssl) + add_dependencies(tcrypto bundled-openssl) endif() diff --git a/src/lib/swim/CMakeLists.txt b/src/lib/swim/CMakeLists.txt index 873cf6e5ba2caf236fab65811374fd127d884ee8..814ac3b83152cae0e9e97bcd316bf3492ba7194d 100644 --- a/src/lib/swim/CMakeLists.txt +++ b/src/lib/swim/CMakeLists.txt @@ -5,7 +5,7 @@ set(lib_swim_ev_sources swim_ev.c) set_source_files_compile_flags(${lib_swim_sources} ${lib_swim_udp_sources} ${lib_swim_ev_sources}) add_library(swim STATIC ${lib_swim_sources}) -target_link_libraries(swim core misc crypto) +target_link_libraries(swim core misc tcrypto) add_library(swim_udp STATIC ${lib_swim_udp_sources}) target_link_libraries(swim_udp core) add_library(swim_ev STATIC ${lib_swim_ev_sources}) diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 1e171eacaf1cc2a8cb8fe4df61adb2e20e1b4332..7fa10397101ea399a0b408798a3848d48ffa40c3 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -466,7 +466,7 @@ create_unit_test(PREFIX sio create_unit_test(PREFIX crypto SOURCES crypto.c core_test_utils.c - LIBRARIES crypto unit + LIBRARIES tcrypto unit ) create_unit_test(PREFIX swim