commit | f7a05844eb39daaf057c4048e7acbe40a1c7e0da | [log] [tgz] |
---|---|---|
author | Corentin Le Molgat <corentinl@google.com> | Mon Jan 29 15:13:23 2018 +0100 |
committer | Corentin Le Molgat <corentinl@google.com> | Thu Feb 01 20:31:36 2018 +0100 |
tree | cb6d3ed4e4047b3fee5208fc18ff7d11bcc1d1fe | |
parent | 3bc0282fb688547de7e4533e865904e3b030d5b2 [diff] [blame] |
Add CMake ALIAS targets We follow the findProtobuf.cmake naming convention to ease the use of protobuf as cmake subproject
diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index e07340d..65d05c1 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake
@@ -128,3 +128,4 @@ VERSION ${protobuf_VERSION} OUTPUT_NAME ${LIB_PREFIX}protobuf DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}") +add_library(protobuf::libprotobuf ALIAS libprotobuf)