aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/external/protobuf.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/external/protobuf.cmake')
-rw-r--r--cmake/external/protobuf.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/external/protobuf.cmake b/cmake/external/protobuf.cmake
index e8060b2..a6ad8f0 100644
--- a/cmake/external/protobuf.cmake
+++ b/cmake/external/protobuf.cmake
@@ -14,6 +14,10 @@
include(ExternalProject)
+if(TARGET protobuf)
+ return()
+endif()
+
# Protubuf has CMake support, but includes it in a `cmake` subdirectory, which
# does not work with CMake's ExternalProject by default. CMake 3.7 added
# SOURCE_SUBDIR as a means of supporting this but that's too new to require