From 328d2d85e833be7cb5a0ab246cc3f5d7e16fc67a Mon Sep 17 00:00:00 2001 From: Ryan Burns <52847440+r-burns@users.noreply.github.com> Date: Tue, 2 Nov 2021 19:34:46 -0700 Subject: [PATCH] Fix .pc paths for absolute GNUInstallDirs (#1058) GNUInstallDirs provided may be absolute paths, in which case appending to the install prefix is not correct. We can instead use the provided CMAKE_INSTALL_FULL_* variables, which are precomputed absolute paths. https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html --- yaml-cpp.pc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaml-cpp.pc.in b/yaml-cpp.pc.in index f713de6..d02dc9e 100644 --- a/yaml-cpp.pc.in +++ b/yaml-cpp.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ Name: Yaml-cpp Description: A YAML parser and emitter for C++