Skip to content

Commit 76a3a54

Browse files
committed
cmake: Ensure script correctness when no targets are specified
1 parent 2638fdb commit 76a3a54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ target_link_libraries(bitcoin_node
296296
minisketch
297297
univalue
298298
Boost::headers
299-
libevent::core
300-
libevent::extra
299+
$<TARGET_NAME_IF_EXISTS:libevent::core>
300+
$<TARGET_NAME_IF_EXISTS:libevent::extra>
301301
$<TARGET_NAME_IF_EXISTS:libevent::pthreads>
302302
$<TARGET_NAME_IF_EXISTS:USDT::headers>
303303
)

0 commit comments

Comments
 (0)