Skip to content

Commit 3bee07a

Browse files
committed
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.
1 parent 1b8d4a6 commit 3bee07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

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

1515
find_package(Threads REQUIRED)
16-
find_package(CapnProto 0.7 REQUIRED)
16+
find_package(CapnProto 0.7 REQUIRED NO_MODULE)
1717

1818
# Check for list-of-pointers memory access bug from Nov 2022
1919
# https://nvd.nist.gov/vuln/detail/CVE-2022-46149

0 commit comments

Comments
 (0)