From 5d5bb52ec2825eb4c0c932a9c2d50dc3699f932f Mon Sep 17 00:00:00 2001
From: Jamie Snape <jamiesnape@users.noreply.github.com>
Date: Fri, 2 Feb 2018 10:12:34 -0500
Subject: [PATCH] Fix paths in pkg-config file (#556)

pkg-config should be giving absolute paths rather than relative paths.
---
 yaml-cpp.pc.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/yaml-cpp.pc.cmake b/yaml-cpp.pc.cmake
index 044ef78..3db7962 100644
--- a/yaml-cpp.pc.cmake
+++ b/yaml-cpp.pc.cmake
@@ -1,5 +1,7 @@
-libdir=@LIB_INSTALL_DIR@
-includedir=@INCLUDE_INSTALL_ROOT_DIR@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+includedir=${prefix}/@INCLUDE_INSTALL_ROOT_DIR@
+libdir=${exec_prefix}/@LIB_INSTALL_DIR@
 
 Name: Yaml-cpp
 Description: A YAML parser and emitter for C++
-- 
GitLab