diff options
author | Corentin Le Molgat <corentinl@google.com> | 2018-01-29 15:13:23 +0100 |
---|---|---|
committer | Corentin Le Molgat <corentinl@google.com> | 2018-02-01 20:31:36 +0100 |
commit | f7a05844eb39daaf057c4048e7acbe40a1c7e0da (patch) | |
tree | cb6d3ed4e4047b3fee5208fc18ff7d11bcc1d1fe /cmake/protoc.cmake | |
parent | 3bc0282fb688547de7e4533e865904e3b030d5b2 (diff) | |
download | protobuf-f7a05844eb39daaf057c4048e7acbe40a1c7e0da.tar.gz protobuf-f7a05844eb39daaf057c4048e7acbe40a1c7e0da.tar.bz2 protobuf-f7a05844eb39daaf057c4048e7acbe40a1c7e0da.zip |
Add CMake ALIAS targets
We follow the findProtobuf.cmake naming convention
to ease the use of protobuf as cmake subproject
Diffstat (limited to 'cmake/protoc.cmake')
-rw-r--r-- | cmake/protoc.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake index 4f07c389..5777b16e 100644 --- a/cmake/protoc.cmake +++ b/cmake/protoc.cmake @@ -4,3 +4,4 @@ set(protoc_files add_executable(protoc ${protoc_files}) target_link_libraries(protoc libprotobuf libprotoc) +add_executable(protobuf::protoc ALIAS protoc) |