Commit 598eda8 1 parent f3c2fea commit 598eda8 Copy full SHA for 598eda8
File tree 4 files changed +10
-19
lines changed
4 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ if(WITH_ZMQ)
108
108
endif ()
109
109
endif ()
110
110
111
- tristate_option (WITH_USDT
112
- "Enable tracepoints for Userspace, Statically Defined Tracing."
113
- "if sys/sdt.h is found."
114
- AUTO
115
- )
111
+ option (WITH_USDT "Enable tracepoints for Userspace, Statically Defined Tracing." OFF )
112
+ if (WITH_USDT)
113
+ find_package (USDT MODULE REQUIRED)
114
+ endif ()
115
+
116
116
cmake_dependent_option(WITH_EXTERNAL_SIGNER "Enable external signer support." ON "NOT WIN32" OFF )
117
117
set (ENABLE_EXTERNAL_SIGNER ${WITH_EXTERNAL_SIGNER} )
118
118
tristate_option(WITH_QRENCODE "Enable QR code support." "if libqrencode is found." AUTO)
Original file line number Diff line number Diff line change @@ -50,17 +50,6 @@ if(CCACHE)
50
50
mark_as_advanced (CCACHE_COMMAND)
51
51
endif ()
52
52
53
- if (WITH_USDT)
54
- find_package (USDT MODULE)
55
- if (USDT_FOUND)
56
- set (WITH_USDT ON )
57
- elseif (WITH_USDT STREQUAL "AUTO" )
58
- set (WITH_USDT OFF )
59
- else ()
60
- message (FATAL_ERROR "sys/sdt.h requested, but not found." )
61
- endif ()
62
- endif ()
63
-
64
53
if (ENABLE_WALLET)
65
54
if (WITH_SQLITE)
66
55
if (VCPKG_TARGET_TRIPLET)
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ $(host_prefix)/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_$(fina
291
291
-e 's|@no_sqlite@|$(NO_SQLITE)|' \
292
292
-e 's|@no_upnp@|$(NO_UPNP)|' \
293
293
-e 's|@no_natpmp@|$(NO_NATPMP)|' \
294
- -e 's|@no_usdt @|$(NO_USDT )|' \
294
+ -e 's|@usdt_packages @|$(usdt_packages_ )|' \
295
295
-e 's|@no_harden@|$(NO_HARDEN)|' \
296
296
-e 's|@multiprocess@|$(MULTIPROCESS)|' \
297
297
$< > $@
Original file line number Diff line number Diff line change @@ -158,8 +158,10 @@ else()
158
158
set (WITH_NATPMP ON CACHE BOOL "" )
159
159
endif ()
160
160
161
- if (NOT WITH_USDT AND "@no_usdt@" STREQUAL "1" )
162
- set (WITH_USDT OFF CACHE STRING "Enable tracepoints for Userspace, Statically Defined Tracing." )
161
+ if ("@usdt_packages@" STREQUAL "" )
162
+ set (WITH_USDT OFF CACHE BOOL "" )
163
+ else ()
164
+ set (WITH_USDT ON CACHE BOOL "" )
163
165
endif ()
164
166
165
167
if ("@no_harden@" )
You can’t perform that action at this time.
0 commit comments