Skip to content

Commit 68bf7d7

Browse files
committed
Check for 'capnp' command at configure time
Resolves #2085
1 parent ba2c2a2 commit 68bf7d7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT rr_64BIT)
120120
endif()
121121
endif()
122122

123+
find_program(CAPNP capnp)
124+
if(${CAPNP} STREQUAL "CAPNP-NOTFOUND")
125+
message(FATAL_ERROR "Can't find 'capnp' command; install 'capnproto' package?")
126+
endif()
127+
123128
set(REQUIRED_LIBS
124129
capnp
125130
)

0 commit comments

Comments
 (0)