mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
cmake: De-duplicate libraries on link lines opportunistically
This change resolves "ignoring duplicate libraries" linker warnings on macOS.
This commit is contained in:
parent
b042c4f053
commit
710a0bb52f
2 changed files with 12 additions and 0 deletions
|
@ -14,6 +14,12 @@ generate_header_from_json(data/tx_invalid.json)
|
||||||
generate_header_from_json(data/tx_valid.json)
|
generate_header_from_json(data/tx_valid.json)
|
||||||
generate_header_from_raw(data/asmap.raw test::data)
|
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
|
# Do not use generator expressions in test sources because the
|
||||||
# SOURCES property is processed to gather test suite macros.
|
# SOURCES property is processed to gather test suite macros.
|
||||||
add_executable(test_bitcoin
|
add_executable(test_bitcoin
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
|
|
||||||
add_subdirectory(util)
|
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
|
add_executable(fuzz
|
||||||
addition_overflow.cpp
|
addition_overflow.cpp
|
||||||
addrman.cpp
|
addrman.cpp
|
||||||
|
|
Loading…
Add table
Reference in a new issue