Skip to content

Commit 70137a4

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 d634396 commit 70137a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cmake/libmultiprocess.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ function(add_libmultiprocess subdir)
3131
# build rules can find the libmultiprocess include directory and avoid
3232
# "error: Import failed: /mp/proxy.capnp" errors from capnp.
3333
set(MP_INCLUDE_DIR "${MP_INCLUDE_DIR}" PARENT_SCOPE)
34+
# Add tests to "all" target so ctest can run them
35+
set_target_properties(mptests PROPERTIES EXCLUDE_FROM_ALL OFF)
3436
endfunction()

0 commit comments

Comments
 (0)