Compare commits

...

2 commits

Author SHA1 Message Date
Hennadii Stepanov
4540ed72a8
Merge 710a0bb52f into 433412fd84 2025-01-07 01:10:52 +01:00
Hennadii Stepanov
710a0bb52f cmake: De-duplicate libraries on link lines opportunistically
This change resolves "ignoring duplicate libraries" linker warnings on
macOS.
2024-12-15 15:54:35 +00:00
2 changed files with 12 additions and 0 deletions

View file

@ -14,6 +14,12 @@ generate_header_from_json(data/tx_invalid.json)
generate_header_from_json(data/tx_valid.json)
generate_header_from_raw(data/asmap.raw test::data)
if(POLICY CMP0156)
# De-duplicate libraries on link lines based on linker capabilities.
# See: https://cmake.org/cmake/help/latest/policy/CMP0156.html
cmake_policy(SET CMP0156 NEW)
endif()
# Do not use generator expressions in test sources because the
# SOURCES property is processed to gather test suite macros.
add_executable(test_bitcoin

View file

@ -4,6 +4,12 @@
add_subdirectory(util)
if(POLICY CMP0156)
# De-duplicate libraries on link lines based on linker capabilities.
# See: https://cmake.org/cmake/help/latest/policy/CMP0156.html
cmake_policy(SET CMP0156 NEW)
endif()
add_executable(fuzz
addition_overflow.cpp
addrman.cpp