diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-11-23 15:17:18 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-11-23 15:17:18 +0000 |
commit | 76a3a540a4c3ff42f84c4701cb2ca6e910a24f50 (patch) | |
tree | 6c431ab64ebf2c2dc04eb140b545b233d35a1d1a | |
parent | 2638fdb4f934be96b7c798dbac38ea5ab8a6374a (diff) |
cmake: Ensure script correctness when no targets are specified
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 22c850e775..5161bebe46 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -296,8 +296,8 @@ target_link_libraries(bitcoin_node minisketch univalue Boost::headers - libevent::core - libevent::extra + $<TARGET_NAME_IF_EXISTS:libevent::core> + $<TARGET_NAME_IF_EXISTS:libevent::extra> $<TARGET_NAME_IF_EXISTS:libevent::pthreads> $<TARGET_NAME_IF_EXISTS:USDT::headers> ) |