Skip to content

Commit 657d806

Browse files
committed
cmake: capnproto pkg missing helpful error
Add a helpful error when we fail to find the package at all.
1 parent d314057 commit 657d806

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ endif()
1313
include("cmake/compat_find.cmake")
1414

1515
find_package(Threads REQUIRED)
16-
find_package(CapnProto 0.7 REQUIRED NO_MODULE)
16+
find_package(CapnProto 0.7 QUIET NO_MODULE)
17+
if(NOT CapnProto_FOUND)
18+
message(FATAL_ERROR
19+
"Cap'n Proto is required but was not found.\n"
20+
"To resolve, choose one of the following:\n"
21+
" - Install Cap'n Proto (version 1.0+ recommended)\n"
22+
" - For Bitcoin Core compilation build with -DENABLE_IPC=OFF to disable multiprocess support\n"
23+
)
24+
endif()
1725

1826
# Cap'n Proto compatibility checks
1927
set(CAPNPROTO_ISSUES "")

0 commit comments

Comments
 (0)