aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@gmail.com>2018-01-29 16:40:36 -0800
committerGitHub <noreply@github.com>2018-01-29 16:40:36 -0800
commit1681fe664b2bbe5ced9a5094322f375515a2e149 (patch)
tree983414b1c10e277be2a9ecbe54df63a6ed413936
parentf438ebd8055d88878565bd1396a5998bbc6487a9 (diff)
parent9d0a44c9de81222929e527ba245cf52a097ca146 (diff)
downloadprotobuf-1681fe664b2bbe5ced9a5094322f375515a2e149.tar.gz
protobuf-1681fe664b2bbe5ced9a5094322f375515a2e149.tar.bz2
protobuf-1681fe664b2bbe5ced9a5094322f375515a2e149.zip
Merge pull request #4196 from mathstuf/cmake-private-target-sources
cmake: privately add sources to targets
-rw-r--r--cmake/protobuf-config.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/protobuf-config.cmake.in b/cmake/protobuf-config.cmake.in
index fd67edc3..acedcc7a 100644
--- a/cmake/protobuf-config.cmake.in
+++ b/cmake/protobuf-config.cmake.in
@@ -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()