summaryrefslogtreecommitdiffhomepage
path: root/raylib.pc.in
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2019-01-19 13:52:55 +0100
committerGitHub <[email protected]>2019-01-19 13:52:55 +0100
commit6c812b56d93f3f388e79137a74190042118ca202 (patch)
treeca804d8c849fdb20ea58808be7f72d63b939aeee /raylib.pc.in
parentd41e50f8661bc19210134028be92235591d71104 (diff)
downloadraylib-6c812b56d93f3f388e79137a74190042118ca202.tar.gz
raylib-6c812b56d93f3f388e79137a74190042118ca202.zip
CMake: pkg-config: fix usage for RedHat-like systems (#728)
$prefix/lib isn't in pc_path on Fedora 28: [root@fedora-28 ~]# pkg-config --variable=pc_path pkg-config /usr/lib64/pkgconfig:/usr/share/pkgconfig This has the effect that the pkg-config file is written to the correct location but pkg-config --libs raylib doesn't output the correct library path. This fixes this problem by substituting the directory names into the .pc, same as we do with the CMakeLists.txt since #518. This issue popped up during the automated test of the Perl bindings: https://github.com/athreef/Alien-raylib/issues/3
Diffstat (limited to 'raylib.pc.in')
-rw-r--r--raylib.pc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/raylib.pc.in b/raylib.pc.in
index 837b2d9a..fe3a3df5 100644
--- a/raylib.pc.in
+++ b/raylib.pc.in
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: raylib
Description: Simple and easy-to-use library to enjoy videogames programming