Commit 4e04d85d authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'protoc_backport_release' into release

b3ffcbd9

 Promote protobuf::protoc to GLOBAL
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !3463
parents 8f2fa2bc b3ffcbd9
......@@ -45,6 +45,8 @@ vtk_module_third_party(
STANDARD_INCLUDE_DIRS)
if (VTK_MODULE_USE_EXTERNAL_ParaView_protobuf)
# promote protobuf::protoc to GLOBAL to allow to call protobuf_generate from other directories
set_target_properties (protobuf::protoc PROPERTIES IMPORTED_GLOBAL TRUE)
set(protobuf_function_file "${CMAKE_CURRENT_SOURCE_DIR}/protobuf-function.cmake")
else ()
set(protobuf_function_file "${CMAKE_CURRENT_SOURCE_DIR}/vtkprotobuf/cmake/protobuf-function.cmake")
......
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