cmake: Restrict MSVC-specific workaround to MSVC compiler only

This change enables compiling `fuzz/utxo_snapshot.cpp` with clang-cl.
This commit is contained in:
Hennadii Stepanov 2025-03-10 17:52:21 +00:00
parent f685645da1
commit cd06275fe9
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -129,7 +129,7 @@ add_executable(fuzz
# Visual Studio 2022 version 17.12 introduced a bug
# that causes an internal compiler error.
# See: https://github.com/bitcoin/bitcoin/issues/31303
$<$<VERSION_LESS:${MSVC_VERSION},1942>:utxo_snapshot.cpp>
$<$<NOT:$<AND:$<CXX_COMPILER_ID:MSVC>,$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,19.42>>>:utxo_snapshot.cpp>
utxo_total_supply.cpp
validation_load_mempool.cpp
vecdeque.cpp