Skip to content

Commit

Permalink
Fix .pc paths for absolute GNUInstallDirs (#1058)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
r-burns authored Nov 3, 2021
1 parent 4564d9a commit 328d2d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaml-cpp.pc.in
Original file line number Diff line number Diff line change
@@ -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++
Expand Down

0 comments on commit 328d2d8

Please sign in to comment.