From eb53c93dc2246c8a3191c54a41fa5d0fa90c2e41 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:06:58 +0000 Subject: [PATCH] amend a fix --- src/crypto/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/crypto/CMakeLists.txt b/src/crypto/CMakeLists.txt index 116db86dbd21c..453680145029d 100644 --- a/src/crypto/CMakeLists.txt +++ b/src/crypto/CMakeLists.txt @@ -22,9 +22,10 @@ add_library(bitcoin_crypto STATIC EXCLUDE_FROM_ALL ../support/cleanse.cpp ) -if(MSVC) - try_append_cxx_flags("/wd4146" TARGET bitcoin_crypto SKIP_LINK) -endif() +target_compile_options(bitcoin_crypto + PRIVATE + $<$:/wd4146> +) target_link_libraries(bitcoin_crypto PRIVATE