Unverified Commit 1681fe66 authored by Adam Cozzette's avatar Adam Cozzette Committed by GitHub

Merge pull request #4196 from mathstuf/cmake-private-target-sources

cmake: privately add sources to targets
parents f438ebd8 9d0a44c9
......@@ -110,7 +110,7 @@ function(protobuf_generate)
set(${protobuf_generate_OUT_VAR} ${_generated_srcs_all} PARENT_SCOPE)
endif()
if(protobuf_generate_TARGET)
target_sources(${protobuf_generate_TARGET} PUBLIC ${_generated_srcs_all})
target_sources(${protobuf_generate_TARGET} PRIVATE ${_generated_srcs_all})
endif()
endfunction()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment