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 | |
parent | 4a3b42ed05b6032be0e86d0b16e32224f93dd39d (diff) |
Add VERSION property to CMake library targets
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/libprotobuf-lite.cmake | 1 | ||||
-rw-r--r-- | cmake/libprotobuf.cmake | 1 | ||||
-rw-r--r-- | cmake/libprotoc.cmake | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/cmake/libprotobuf-lite.cmake b/cmake/libprotobuf-lite.cmake index f5242d4f..423b6c17 100644 --- a/cmake/libprotobuf-lite.cmake +++ b/cmake/libprotobuf-lite.cmake @@ -62,5 +62,6 @@ if(MSVC AND protobuf_BUILD_SHARED_LIBS) PRIVATE LIBPROTOBUF_EXPORTS) endif() set_target_properties(libprotobuf-lite PROPERTIES + VERSION ${protobuf_VERSION} OUTPUT_NAME ${LIB_PREFIX}protobuf-lite DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}") diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index 72db915b..e07340d2 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake @@ -125,5 +125,6 @@ if(MSVC AND protobuf_BUILD_SHARED_LIBS) PRIVATE LIBPROTOBUF_EXPORTS) endif() set_target_properties(libprotobuf PROPERTIES + VERSION ${protobuf_VERSION} OUTPUT_NAME ${LIB_PREFIX}protobuf DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}") 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}") |