Skip to content

Commit 30894d7

Browse files
committed
The library is header-only, it is architecture-insdependent. So pkg-config files should be in an arch-independent location.
1 parent 139abf9 commit 30894d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ target_include_directories(
5959
# Add an alias to public name.
6060
add_library( bfg::Lyra ALIAS lyra )
6161

62-
set(LYRA_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/lyra")
62+
set(LYRA_INSTALL_CONFIGDIR "${INSTALL_LIBDIR_ARCHIND}/cmake/lyra")
6363
set(PkgConfigTemplatesDir "${CMAKE_CURRENT_SOURCE_DIR}/data/pkgconfig")
6464

6565
## Installation Code
@@ -96,7 +96,7 @@ install(
9696
set(PKG_CONFIG_FILE_NAME "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc")
9797
configure_file("${PkgConfigTemplatesDir}/pkgconfig.pc.in" "${PKG_CONFIG_FILE_NAME}" @ONLY)
9898
install(FILES "${PKG_CONFIG_FILE_NAME}"
99-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
99+
DESTINATION "${INSTALL_LIBDIR_ARCHIND}/pkgconfig"
100100
)
101101

102102
include(CPack)

0 commit comments

Comments
 (0)