From 3bee07ab3367eb77e3943859c845ec0c0195f9b8 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Wed, 3 Sep 2025 10:24:32 +0200 Subject: [PATCH] cmake: search capnproto in package mode only CMake does not provide a `FindCapnProto.cmake` module and never will, because CapnProto already ships CMake package configuration files. Make sure to skip the search for the CMake module and avoid the confusing "By not providing ..." error message if CapnProto is not installed. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef694412..3cf9da53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ endif() include("cmake/compat_find.cmake") find_package(Threads REQUIRED) -find_package(CapnProto 0.7 REQUIRED) +find_package(CapnProto 0.7 REQUIRED NO_MODULE) # Check for list-of-pointers memory access bug from Nov 2022 # https://nvd.nist.gov/vuln/detail/CVE-2022-46149