From 9fd21ebae6282e4015f3e33461ef62f62c38371d Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Sat, 20 Jun 2020 15:53:39 +0200 Subject: Add source target per module for generated sources. --- storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storageapi') diff --git a/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt b/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt index 113a4372068..1b1e224f034 100644 --- a/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt +++ b/storageapi/src/vespa/storageapi/mbusprot/CMakeLists.txt @@ -7,6 +7,8 @@ PROTOBUF_GENERATE_CPP(storageapi_PROTOBUF_SRCS storageapi_PROTOBUF_HDRS protobuf/visiting.proto protobuf/maintenance.proto) +vespa_add_source_target(protobufgen_storageapi_mbusprot DEPENDS ${storageapi_PROTOBUF_SRCS} ${storageapi_PROTOBUF_HDRS}) + # protoc-generated files emit compiler warnings that we normally treat as errors. # Instead of rolling our own compiler plugin we'll pragmatically disable the noise. if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang") -- cgit v1.2.3