diff options
author | David Seifert <soap@gentoo.org> | 2019-10-05 13:58:45 (GMT) |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2019-10-05 13:58:45 (GMT) |
commit | 5126ff48d9ac54828d1947d1423a5ef2a8efee3b (patch) | |
tree | 5f0547db3e7f2d180c33c1bffe5a5d4b09c03d96 /googletest/cmake/gtest_main.pc.in | |
parent | 76a560c81cfe75cc6f9ff0c4a37ea3d1ce1229ed (diff) | |
download | googletest-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_main.pc.in')
-rw-r--r-- | googletest/cmake/gtest_main.pc.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/googletest/cmake/gtest_main.pc.in b/googletest/cmake/gtest_main.pc.in index 915f297..fe25d9c 100644 --- a/googletest/cmake/gtest_main.pc.in +++ b/googletest/cmake/gtest_main.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_main Description: GoogleTest (with main() function) |