diff options
author | Corentin Le Molgat <corentinl@google.com> | 2018-01-29 15:11:59 +0100 |
---|---|---|
committer | Corentin Le Molgat <corentinl@google.com> | 2018-02-01 20:31:36 +0100 |
commit | 3bc0282fb688547de7e4533e865904e3b030d5b2 (patch) | |
tree | 4421a22db76dd5da6401059657a54dccfef3d82e /cmake/libprotoc.cmake | |
parent | 4a3b42ed05b6032be0e86d0b16e32224f93dd39d (diff) | |
download | protobuf-3bc0282fb688547de7e4533e865904e3b030d5b2.tar.gz protobuf-3bc0282fb688547de7e4533e865904e3b030d5b2.tar.bz2 protobuf-3bc0282fb688547de7e4533e865904e3b030d5b2.zip |
Add VERSION property to CMake library targets
Diffstat (limited to 'cmake/libprotoc.cmake')
-rw-r--r-- | cmake/libprotoc.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/libprotoc.cmake b/cmake/libprotoc.cmake index 107c1c52..a85dccdf 100644 --- a/cmake/libprotoc.cmake +++ b/cmake/libprotoc.cmake @@ -225,5 +225,6 @@ 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}") |