From 50cbfab391f50efd2f2270f24c3ca2e48e039510 Mon Sep 17 00:00:00 2001 From: Gil Date: Tue, 10 Jul 2018 07:57:54 -0700 Subject: Reorganize cmake dependencies (#1508) * Add cmake dependencies where required ... instead of relying on a topological sort in the top-level CMakeLists.txt. * Add early exits to external project builds --- cmake/external/protobuf.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/external/protobuf.cmake') 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 -- cgit v1.2.3