summaryrefslogtreecommitdiffstats
path: root/googletest/cmake/gtest.pc.in
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-10-05 13:58:45 (GMT)
committerDavid Seifert <soap@gentoo.org>2019-10-05 13:58:45 (GMT)
commit5126ff48d9ac54828d1947d1423a5ef2a8efee3b (patch)
tree5f0547db3e7f2d180c33c1bffe5a5d4b09c03d96 /googletest/cmake/gtest.pc.in
parent76a560c81cfe75cc6f9ff0c4a37ea3d1ce1229ed (diff)
downloadgoogletest-5126ff48d9ac54828d1947d1423a5ef2a8efee3b.zip
googletest-5126ff48d9ac54828d1947d1423a5ef2a8efee3b.tar.gz
googletest-5126ff48d9ac54828d1947d1423a5ef2a8efee3b.tar.bz2
Revert "Use pcfiledir for prefix in pkgconfig file"
The change makes implicit assumptions on the layout of the install tree, which is going to break in many ways. The correct solution is to use the `PKG_CONFIG_SYSROOT_DIR` variable to inject the cross-compiled sysroot into `-I` and `-L` paths.
Diffstat (limited to 'googletest/cmake/gtest.pc.in')
-rw-r--r--googletest/cmake/gtest.pc.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/googletest/cmake/gtest.pc.in b/googletest/cmake/gtest.pc.in
index 9aae29e..e7967ad 100644
--- a/googletest/cmake/gtest.pc.in
+++ b/googletest/cmake/gtest.pc.in
@@ -1,6 +1,5 @@
-prefix=${pcfiledir}/../..
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: gtest
Description: GoogleTest (without main() function)