From 60cde63b4c2e7bf1e5b24bc4aaf126418fe40644 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Tue, 11 Jun 2024 11:14:36 +0200 Subject: [PATCH] Make wannier90.pc more relocatable Signed-off-by: Cristian Le --- cmake/wannier90.pc.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/wannier90.pc.in b/cmake/wannier90.pc.in index e1fdf3e8..5c71772c 100644 --- a/cmake/wannier90.pc.in +++ b/cmake/wannier90.pc.in @@ -1,9 +1,12 @@ prefix: @CMAKE_INSTALL_PREFIX@ +libdir: ${prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir: ${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ +moduledir: ${prefix}/@CMAKE_INSTALL_MODULEDIR@/Wannier90 Name: wannier Version: @PROJECT_VERSION@ Description: @PROJECT_DESCRIPTION@ URL: @PROJECT_HOMEPAGE_URL@ -Cflags: -I@CMAKE_INSTALL_FULL_MODULEDIR@ -I@CMAKE_INSTALL_FULL_INCLUDEDIR@ -Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lwannier90 +Cflags: -I${moduledir} -I${includedir} +Libs: -L${libdir} -lwannier90