]> git.pld-linux.org Git - packages/gtest.git/blob - gtest-libversion.patch
16f11d0e415759a1cab49db5ff795e7a3ae4380d
[packages/gtest.git] / gtest-libversion.patch
1 --- googletest-release-1.10.0/googlemock/CMakeLists.txt.orig    2019-10-03 16:52:15.000000000 +0200
2 +++ googletest-release-1.10.0/googlemock/CMakeLists.txt 2020-02-28 18:49:56.774541882 +0100
3 @@ -100,8 +100,10 @@
4  else()
5    cxx_library(gmock "${cxx_strict}" src/gmock-all.cc)
6    target_link_libraries(gmock PUBLIC gtest)
7 +  set_target_properties(gmock PROPERTIES VERSION ${GOOGLETEST_VERSION} SOVERSION 0)
8    cxx_library(gmock_main "${cxx_strict}" src/gmock_main.cc)
9    target_link_libraries(gmock_main PUBLIC gmock)
10 +  set_target_properties(gmock_main PROPERTIES VERSION ${GOOGLETEST_VERSION} SOVERSION 0)
11  endif()
12  # If the CMake version supports it, attach header directory information
13  # to the targets for when we are part of a parent build (ie being pulled
14 --- googletest-release-1.10.0/googletest/CMakeLists.txt.orig    2020-02-28 18:58:56.451618201 +0100
15 +++ googletest-release-1.10.0/googletest/CMakeLists.txt 2020-02-28 18:58:59.334935914 +0100
16 @@ -126,7 +126,9 @@
17  # are used for other targets, to ensure that gtest can be compiled by a user
18  # aggressive about warnings.
19  cxx_library(gtest "${cxx_strict}" src/gtest-all.cc)
20 +set_target_properties(gtest PROPERTIES VERSION ${GOOGLETEST_VERSION} SOVERSION 0)
21  cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
22 +set_target_properties(gtest_main PROPERTIES VERSION ${GOOGLETEST_VERSION} SOVERSION 0)
23  # If the CMake version supports it, attach header directory information
24  # to the targets for when we are part of a parent build (ie being pulled
25  # in via add_subdirectory() rather than being a standalone build).
This page took 0.126056 seconds and 2 git commands to generate.