From fdbb6370d2c5f9e67aa1b583ffe38d73ec7bfcb7 Mon Sep 17 00:00:00 2001 From: spycheese Date: Fri, 26 Jul 2024 08:03:00 +0300 Subject: [PATCH] Adjsut windows build --- assembly/native/build-toncryptolib-windows-github.bat | 2 +- crypto/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assembly/native/build-toncryptolib-windows-github.bat b/assembly/native/build-toncryptolib-windows-github.bat index 90dd0795d..ce8be3c55 100644 --- a/assembly/native/build-toncryptolib-windows-github.bat +++ b/assembly/native/build-toncryptolib-windows-github.bat @@ -1,2 +1,2 @@ -call "C:\Program Files\Microsoft Visual Studio\2022\%1\VC\Auxiliary\Build\vcvars64.bat" +call "C:\Program Files (x86)\Microsoft Visual Studio\2019\%1\VC\Auxiliary\Build\vcvars64.bat" call build-toncryptolib-windows.bat \ No newline at end of file diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index c539e6255..77d548dd3 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -583,7 +583,7 @@ elseif (APPLE) target_link_libraries(ton_crypto_lib PUBLIC "-force_load" ton_crypto_core) target_link_libraries(ton_crypto_lib PUBLIC "-force_load" tdutils) else() - target_link_libraries(ton_crypto_lib PUBLIC -Wl,--whole-archive ton_crypto_core tdutils -Wl,--no-whole-archive) + target_link_libraries(ton_crypto_lib PUBLIC -Wl,--whole-archive ton_crypto_core tdutils ${OPENSSL_CRYPTO_LIBRARY} -Wl,--no-whole-archive) endif() install(TARGETS ton_crypto_lib LIBRARY DESTINATION lib)