diff --git a/cmake/jstar.pc.in b/cmake/jstar.pc.in index e98a7b84..8bf20e81 100644 --- a/cmake/jstar.pc.in +++ b/cmake/jstar.pc.in @@ -7,8 +7,8 @@ prefix="@CMAKE_INSTALL_PREFIX@" exec_prefix="${prefix}" -libdir="${prefix}/lib" -includedir="${prefix}/include" +libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@" +includedir="${prefix}/@CMAKE_INSTALL_INCLUDEDIR@" Name: @PROJECT_NAME@ Description: @CMAKE_PROJECT_DESCRIPTION@ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 32a69413..7d8d247a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -199,6 +199,6 @@ if(JSTAR_INSTALL) ) install( FILES ${CMAKE_BINARY_DIR}/jstar.pc - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkg-config + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig ) endif()