summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorElias Daler <eliasdaler@yandex.ru>2018-08-13 20:01:00 (GMT)
committerElias Daler <eliasdaler@yandex.ru>2018-08-13 20:01:09 (GMT)
commit9ca399ae053d0a2a4d206fffe9ab76f577dbe22e (patch)
tree78786c0026690ca0a18c1c426b8790d68b1fe9eb /googlemock
parent7800ba3eeade13ae7afb5877d7d59202a4d0ed5e (diff)
downloadgoogletest-9ca399ae053d0a2a4d206fffe9ab76f577dbe22e.zip
googletest-9ca399ae053d0a2a4d206fffe9ab76f577dbe22e.tar.gz
googletest-9ca399ae053d0a2a4d206fffe9ab76f577dbe22e.tar.bz2
Change location of generated pkg-config files from CMAKE_BINARY_DIR to gmock/gtest_BINARY_DIR (#1717)
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
index bac2e3b..0b1f77a 100644
--- a/googlemock/CMakeLists.txt
+++ b/googlemock/CMakeLists.txt
@@ -128,13 +128,13 @@ if(INSTALL_GMOCK)
# configure and install pkgconfig files
configure_file(
cmake/gmock.pc.in
- "${CMAKE_BINARY_DIR}/gmock.pc"
+ "${gmock_BINARY_DIR}/gmock.pc"
@ONLY)
configure_file(
cmake/gmock_main.pc.in
- "${CMAKE_BINARY_DIR}/gmock_main.pc"
+ "${gmock_BINARY_DIR}/gmock_main.pc"
@ONLY)
- install(FILES "${CMAKE_BINARY_DIR}/gmock.pc" "${CMAKE_BINARY_DIR}/gmock_main.pc"
+ install(FILES "${gmock_BINARY_DIR}/gmock.pc" "${gmock_BINARY_DIR}/gmock_main.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif()