summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorNeal Gompa <ngompa13@gmail.com>2020-03-21 09:35:12 (GMT)
committerNeal Gompa <ngompa13@gmail.com>2020-03-21 09:50:10 (GMT)
commit94a7cf8c57e48caa9c120e8147c78ba7c4915050 (patch)
treef936524865e62c149f7b2ef37c7ba65eadd12b06 /googlemock
parent749148f1accc346d94825358a9a745b852961a11 (diff)
downloadgoogletest-94a7cf8c57e48caa9c120e8147c78ba7c4915050.zip
googletest-94a7cf8c57e48caa9c120e8147c78ba7c4915050.tar.gz
googletest-94a7cf8c57e48caa9c120e8147c78ba7c4915050.tar.bz2
Set the version for the librariesrefs/pull/2755/head
When building packaged shared libraries for use, having the version set makes it so that the soname is set correctly for parallel installation. This change is derived from the one used for the Fedora gtest package. Signed-off-by: Neal Gompa <ngompa13@gmail.com>
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
index 8ab59d7..079c8c9 100644
--- a/googlemock/CMakeLists.txt
+++ b/googlemock/CMakeLists.txt
@@ -100,8 +100,10 @@ if (MSVC)
else()
cxx_library(gmock "${cxx_strict}" src/gmock-all.cc)
target_link_libraries(gmock PUBLIC gtest)
+ set_target_properties(gmock PROPERTIES VERSION ${GOOGLETEST_VERSION})
cxx_library(gmock_main "${cxx_strict}" src/gmock_main.cc)
target_link_libraries(gmock_main PUBLIC gmock)
+ set_target_properties(gmock_main PROPERTIES VERSION ${GOOGLETEST_VERSION})
endif()
# If the CMake version supports it, attach header directory information
# to the targets for when we are part of a parent build (ie being pulled