From f7a05844eb39daaf057c4048e7acbe40a1c7e0da Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 29 Jan 2018 15:13:23 +0100 Subject: Add CMake ALIAS targets We follow the findProtobuf.cmake naming convention to ease the use of protobuf as cmake subproject --- cmake/libprotobuf.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/libprotobuf.cmake') diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index e07340d2..65d05c19 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake @@ -128,3 +128,4 @@ set_target_properties(libprotobuf PROPERTIES VERSION ${protobuf_VERSION} OUTPUT_NAME ${LIB_PREFIX}protobuf DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}") +add_library(protobuf::libprotobuf ALIAS libprotobuf) -- cgit v1.2.3