cmake: Fail if Libmultiprocess is missing when WITH_MULTIPROCESS=ON

This commit is contained in:
Hennadii Stepanov 2025-01-22 17:33:57 +00:00
parent 5d6f6fd00d
commit c31166ac77
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -143,8 +143,8 @@ cmake_dependent_option(WITH_DBUS "Enable DBus support." ON "CMAKE_SYSTEM_NAME ST
option(WITH_MULTIPROCESS "Build multiprocess bitcoin-node and bitcoin-gui executables in addition to monolithic bitcoind and bitcoin-qt executables. Requires libmultiprocess library. Experimental." OFF)
if(WITH_MULTIPROCESS)
find_package(Libmultiprocess COMPONENTS Lib)
find_package(LibmultiprocessNative COMPONENTS Bin
find_package(Libmultiprocess REQUIRED COMPONENTS Lib)
find_package(LibmultiprocessNative REQUIRED COMPONENTS Bin
NAMES Libmultiprocess
)
endif()