@@ -277,9 +277,11 @@ if(ENABLE_WALLET)
277277 init/bitcoin-wallet.cpp
278278 wallet/wallettool.cpp
279279 )
280- set_target_properties (elements-wallet PROPERTIES
281- SKIP_BUILD_RPATH OFF
282- )
280+ if (APPLE )
281+ set_target_properties (elements-wallet PROPERTIES
282+ SKIP_BUILD_RPATH OFF
283+ )
284+ endif ()
283285 add_windows_resources (elements-wallet bitcoin-wallet-res.rc )
284286 target_link_libraries (elements-wallet
285287 core_interface
@@ -421,9 +423,11 @@ if(BUILD_DAEMON)
421423 bitcoind.cpp
422424 init/bitcoind.cpp
423425 )
424- set_target_properties (elementsd PROPERTIES
425- SKIP_BUILD_RPATH OFF
426- )
426+ if (APPLE )
427+ set_target_properties (elementsd PROPERTIES
428+ SKIP_BUILD_RPATH OFF
429+ )
430+ endif ()
427431 add_windows_resources (elementsd bitcoind-res.rc )
428432 target_link_libraries (elementsd
429433 core_interface
@@ -438,9 +442,11 @@ if(WITH_MULTIPROCESS AND BUILD_DAEMON)
438442 bitcoind.cpp
439443 init/bitcoin-node.cpp
440444 )
441- set_target_properties (elements-node PROPERTIES
442- SKIP_BUILD_RPATH OFF
443- )
445+ if (APPLE )
446+ set_target_properties (elements-node PROPERTIES
447+ SKIP_BUILD_RPATH OFF
448+ )
449+ endif ()
444450 target_link_libraries (elements-node
445451 core_interface
446452 bitcoin_node
@@ -482,9 +488,11 @@ target_link_libraries(bitcoin_cli
482488# Elements Core RPC client
483489if (BUILD_CLI)
484490 add_executable (elements-cli bitcoin-cli.cpp )
485- set_target_properties (elements-cli PROPERTIES
486- SKIP_BUILD_RPATH OFF
487- )
491+ if (APPLE )
492+ set_target_properties (elements-cli PROPERTIES
493+ SKIP_BUILD_RPATH OFF
494+ )
495+ end if ()
488496 add_windows_resources (elements-cli bitcoin-cli-res.rc )
489497 target_link_libraries (elements-cli
490498 core_interface
@@ -501,9 +509,11 @@ endif()
501509if (BUILD_TX)
502510 add_executable (elements-tx bitcoin-tx.cpp )
503511 add_windows_resources (elements-tx bitcoin-tx-res.rc )
504- set_target_properties (elements-tx PROPERTIES
505- SKIP_BUILD_RPATH OFF
506- )
512+ if (APPLE )
513+ set_target_properties (elements-tx PROPERTIES
514+ SKIP_BUILD_RPATH OFF
515+ )
516+ endif ()
507517 target_link_libraries (elements-tx
508518 core_interface
509519 bitcoin_common
@@ -518,9 +528,11 @@ endif()
518528if (BUILD_UTIL)
519529 add_executable (elements-util bitcoin-util.cpp )
520530 add_windows_resources (elements-util bitcoin-util-res.rc )
521- set_target_properties (elements-util PROPERTIES
522- SKIP_BUILD_RPATH OFF
523- )
531+ if (APPLE )
532+ set_target_properties (elements-util PROPERTIES
533+ SKIP_BUILD_RPATH OFF
534+ )
535+ endif ()
524536 target_link_libraries (elements-util
525537 core_interface
526538 bitcoin_common
@@ -550,9 +562,11 @@ if(BUILD_UTIL_CHAINSTATE)
550562 # Relevant discussions:
551563 # - https://github.com/hebasto/bitcoin/pull/236#issuecomment-2183120953
552564 # - https://github.com/bitcoin/bitcoin/pull/30312#issuecomment-2191235833
553- set_target_properties (bitcoin-chainstate PROPERTIES
554- SKIP_BUILD_RPATH OFF
555- )
565+ if (APPLE )
566+ set_target_properties (bitcoin-chainstate PROPERTIES
567+ SKIP_BUILD_RPATH OFF
568+ )
569+ endif ()
556570 target_link_libraries (bitcoin-chainstate
557571 PRIVATE
558572 core_interface
0 commit comments