Commit 095b3113 authored by Filipp Andjelo's avatar Filipp Andjelo Committed by Filipp Andjelo
Browse files

Use pcfiledir for prefix in pkgconfig file

Using absolute paths in the pkg-config file makes it not relocatable and
leads to problems, when trying to use it with precompiled cross
toolchains. Setting prefix to relative path based on pcfiledir makes it
more reliable for such cases.
parent 658c6390
libdir=@CMAKE_INSTALL_FULL_LIBDIR@ prefix=${pcfiledir}/../..
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: gmock Name: gmock
Description: GoogleMock (without main() function) Description: GoogleMock (without main() function)
......
libdir=@CMAKE_INSTALL_FULL_LIBDIR@ prefix=${pcfiledir}/../..
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: gmock_main Name: gmock_main
Description: GoogleMock (with main() function) Description: GoogleMock (with main() function)
......
libdir=@CMAKE_INSTALL_FULL_LIBDIR@ prefix=${pcfiledir}/../..
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: gtest Name: gtest
Description: GoogleTest (without main() function) Description: GoogleTest (without main() function)
......
libdir=@CMAKE_INSTALL_FULL_LIBDIR@ prefix=${pcfiledir}/../..
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: gtest_main Name: gtest_main
Description: GoogleTest (with main() function) Description: GoogleTest (with main() function)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment