We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mp_proxy_codegen
1 parent 61de697 commit 51ef1d0Copy full SHA for 51ef1d0
1 file changed
CMakeLists.txt
@@ -139,6 +139,10 @@ configure_file(include/mp/config.h.in "${CMAKE_CURRENT_BINARY_DIR}/include/mp/co
139
# Generated C++ Capn'Proto schema files
140
capnp_generate_cpp(MP_PROXY_SRCS MP_PROXY_HDRS include/mp/proxy.capnp)
141
set_source_files_properties("${MP_PROXY_SRCS}" PROPERTIES SKIP_LINTING TRUE) # Ignored before cmake 3.27
142
+# Add a convenience custom target that allows generating
143
+# Cap'n Proto C++ source files, which is useful as
144
+# the `capnp_generate_cpp` function is not CODEGEN-aware.
145
+add_custom_target(mp_headers DEPENDS ${MP_PROXY_HDRS})
146
147
# util library
148
add_library(mputil OBJECT src/mp/util.cpp)
0 commit comments