1 diff --git a/src/external/muparser/muparser.pc.in b/src/external/muparser/muparser.pc.in
2 index 646787cb53..9b97ad57f7 100644
3 --- a/src/external/muparser/muparser.pc.in
4 +++ b/src/external/muparser/muparser.pc.in
6 -prefix=@CMAKE_INSTALL_PREFIX@
8 -libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
9 -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
10 +libdir=@CMAKE_INSTALL_FULL_LIBDIR@
11 +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
14 Description: Mathematical expressions parser library
15 diff --git a/src/gromacs/libgromacs.pc.cmakein b/src/gromacs/libgromacs.pc.cmakein
16 index ec1ed6684e..ca1105474a 100644
17 --- a/src/gromacs/libgromacs.pc.cmakein
18 +++ b/src/gromacs/libgromacs.pc.cmakein
20 -libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
21 +libdir=@CMAKE_INSTALL_FULL_LIBDIR@
23 Name: libgromacs@GMX_LIBS_SUFFIX@
24 Description: Gromacs library