Change location of generated pkg-config files from CMAKE_BINARY_DIR to gmock/gtest_BINARY_DIR (#1717)
This commit is contained in:
parent
7800ba3eea
commit
9ca399ae05
|
@ -128,13 +128,13 @@ if(INSTALL_GMOCK)
|
||||||
# configure and install pkgconfig files
|
# configure and install pkgconfig files
|
||||||
configure_file(
|
configure_file(
|
||||||
cmake/gmock.pc.in
|
cmake/gmock.pc.in
|
||||||
"${CMAKE_BINARY_DIR}/gmock.pc"
|
"${gmock_BINARY_DIR}/gmock.pc"
|
||||||
@ONLY)
|
@ONLY)
|
||||||
configure_file(
|
configure_file(
|
||||||
cmake/gmock_main.pc.in
|
cmake/gmock_main.pc.in
|
||||||
"${CMAKE_BINARY_DIR}/gmock_main.pc"
|
"${gmock_BINARY_DIR}/gmock_main.pc"
|
||||||
@ONLY)
|
@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")
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -121,13 +121,13 @@ if(INSTALL_GTEST)
|
||||||
# configure and install pkgconfig files
|
# configure and install pkgconfig files
|
||||||
configure_file(
|
configure_file(
|
||||||
cmake/gtest.pc.in
|
cmake/gtest.pc.in
|
||||||
"${CMAKE_BINARY_DIR}/gtest.pc"
|
"${gtest_BINARY_DIR}/gtest.pc"
|
||||||
@ONLY)
|
@ONLY)
|
||||||
configure_file(
|
configure_file(
|
||||||
cmake/gtest_main.pc.in
|
cmake/gtest_main.pc.in
|
||||||
"${CMAKE_BINARY_DIR}/gtest_main.pc"
|
"${gtest_BINARY_DIR}/gtest_main.pc"
|
||||||
@ONLY)
|
@ONLY)
|
||||||
install(FILES "${CMAKE_BINARY_DIR}/gtest.pc" "${CMAKE_BINARY_DIR}/gtest_main.pc"
|
install(FILES "${gtest_BINARY_DIR}/gtest.pc" "${gtest_BINARY_DIR}/gtest_main.pc"
|
||||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user