cmake: default FMT_PKGCONFIG_DIR to a relative path

This commit is contained in:
Jason S Zang 2019-03-13 18:25:56 +08:00 committed by Victor Zverovich
parent e28429ee73
commit 287342dab1

View File

@ -206,7 +206,7 @@ if (FMT_INSTALL)
set(FMT_INC_DIR ${CMAKE_INSTALL_INCLUDEDIR}/fmt CACHE STRING
"Installation directory for include files, relative to ${CMAKE_INSTALL_PREFIX}.")
set(FMT_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" CACHE PATH
set(FMT_PKGCONFIG_DIR "share/pkgconfig" CACHE PATH
"Installation directory for pkgconfig (.pc) files, relative to ${CMAKE_INSTALL_PREFIX}.")
# Generate the version, config and target files into the build directory.