diff --git a/CMakeLists.txt b/CMakeLists.txt index 19ecdbc7c..3b6cb9e16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1122,8 +1122,8 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS) ) configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.in - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc + ${PROJECT_NAME}.pc.in + ${PROJECT_NAME}.pc @ONLY ) diff --git a/rocksdb.pc.in b/rocksdb.pc.in index 0bbb625fe..5217a4518 100644 --- a/rocksdb.pc.in +++ b/rocksdb.pc.in @@ -1,11 +1,10 @@ prefix="@CMAKE_INSTALL_PREFIX@" -exec_prefix="${prefix}" -libdir="${prefix}/lib" -includedir="${prefix}/include" +includedir="${prefix}/@CMAKE_INSTALL_INCLUDEDIR@" +libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@" Name: @PROJECT_NAME@ -Description: @CMAKE_PROJECT_DESCRIPTION@ -URL: @CMAKE_PROJECT_HOMEPAGE_URL@ +Description: @PROJECT_DESCRIPTION@ +URL: @PROJECT_HOMEPAGE_URL@ Version: @PROJECT_VERSION@ Cflags: -I"${includedir}" Libs: -L"${libdir}" -lrocksdb