aboutsummaryrefslogtreecommitdiff
path: root/cmake/libprotoc.cmake
diff options
context:
space:
mode:
authorCorentin Le Molgat <corentinl@google.com>2018-01-29 15:13:23 +0100
committerCorentin Le Molgat <corentinl@google.com>2018-02-01 20:31:36 +0100
commitf7a05844eb39daaf057c4048e7acbe40a1c7e0da (patch)
treecb6d3ed4e4047b3fee5208fc18ff7d11bcc1d1fe /cmake/libprotoc.cmake
parent3bc0282fb688547de7e4533e865904e3b030d5b2 (diff)
downloadprotobuf-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/libprotoc.cmake')
-rw-r--r--cmake/libprotoc.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/libprotoc.cmake b/cmake/libprotoc.cmake
index a85dccdf..5f6d078c 100644
--- a/cmake/libprotoc.cmake
+++ b/cmake/libprotoc.cmake
@@ -228,3 +228,4 @@ set_target_properties(libprotoc PROPERTIES
VERSION ${protobuf_VERSION}
OUTPUT_NAME ${LIB_PREFIX}protoc
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
+add_library(protobuf::libprotoc ALIAS libprotoc)