Skip to content

Commit 615a94f

Browse files
ryanofskyclaude
andcommitted
cmake: document ONLY_CAPNP option in target_capnp_sources
The ONLY_CAPNP keyword was parsed but not mentioned in the function's docstring. Add a description explaining what it does and when to use it. Suggested by hebasto in #289 (review) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 620f297 commit 615a94f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmake/TargetCapnpSources.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ Optional Keyword Arguments:
4141
IMPORT_PATHS: Specifies additional directories to search for imported
4242
`.capnp` files.
4343
44+
ONLY_CAPNP: If specified, only the Cap'n Proto serialization files
45+
(`.capnp.h`, `.capnp.c++`) are generated and compiled. The mpgen proxy
46+
files (`.capnp.proxy-client.c++`, `.capnp.proxy-server.c++`,
47+
`.capnp.proxy-types.c++`, etc.) are skipped. Useful when you need
48+
Cap'n Proto serialization without the multiprocess RPC proxy
49+
infrastructure.
50+
4451
Example:
4552
# Assuming `my_library` is a target and `lib/` contains `.capnp` schema
4653
# files with imports from `include/`.

0 commit comments

Comments
 (0)