Skip to content

Commit 328d2d8

Browse files
authored
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
1 parent 4564d9a commit 328d2d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yaml-cpp.pc.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
22
exec_prefix=${prefix}
3-
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
4-
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
3+
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
4+
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
55

66
Name: Yaml-cpp
77
Description: A YAML parser and emitter for C++

0 commit comments

Comments
 (0)