diff options
author | Gil <mcg@google.com> | 2018-07-10 07:57:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 07:57:54 -0700 |
commit | 50cbfab391f50efd2f2270f24c3ca2e48e039510 (patch) | |
tree | eebcba9137567c219b1bd5e939d84057e0e66a2e /cmake/external/protobuf.cmake | |
parent | 954e4d5df13b14aee9c1112db67a23729d12acfd (diff) |
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
Diffstat (limited to 'cmake/external/protobuf.cmake')
-rw-r--r-- | cmake/external/protobuf.cmake | 4 |
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 |