aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/libprotoc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/libprotoc.cmake')
-rw-r--r--cmake/libprotoc.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/libprotoc.cmake b/cmake/libprotoc.cmake
index 107c1c52..5f6d078c 100644
--- a/cmake/libprotoc.cmake
+++ b/cmake/libprotoc.cmake
@@ -225,5 +225,7 @@ if(MSVC AND protobuf_BUILD_SHARED_LIBS)
endif()
set_target_properties(libprotoc PROPERTIES
COMPILE_DEFINITIONS LIBPROTOC_EXPORTS
+ VERSION ${protobuf_VERSION}
OUTPUT_NAME ${LIB_PREFIX}protoc
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
+add_library(protobuf::libprotoc ALIAS libprotoc)