Skip to content

Commit a41f208

Browse files
committed
cmake: Fix ctest mptest "Unable to find executable" errors
This change is technically not needed to add libmultiprocess as a subtree, but it avoids a CI failure in followup PR bitcoin#30975 which enables multiprocess build option in more CI jobs. In that PR, several jobs fail due to the mptest executable not being built by default, as reported bitcoin#30975 (comment)
1 parent 94cd9dc commit a41f208

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ipc/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ if (NOT WITH_EXTERNAL_LIBMULTIPROCESS)
1818
# build rules can find the libmultiprocess include directory and avoid
1919
# "error: Import failed: /mp/proxy.capnp" errors from capnp.
2020
set(MP_INCLUDE_DIR "${MP_INCLUDE_DIR}" PARENT_SCOPE)
21+
# Add tests to "all" target so ctest can run them
22+
set_target_properties(mptests PROPERTIES EXCLUDE_FROM_ALL OFF)
2123
endif()
2224

2325
add_library(bitcoin_ipc STATIC EXCLUDE_FROM_ALL

0 commit comments

Comments
 (0)