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