build: Install .pc file in correct directory

/usr/share/pkgconfig should be used for architecture independent
libraries (e.g. data or scripts), while an architecture dependent
directory like /usr/lib64/pkgconfig should be used for native
binaries.

Co-authored-by: Sam James <sam@gentoo.org>
This commit is contained in:
Matthew Smith 2022-06-04 09:22:37 +01:00
parent 76b3a87285
commit 9cd715b3b1
No known key found for this signature in database
GPG Key ID: 7DF835D457326FCD

View File

@ -173,7 +173,7 @@ if(NOT BUILD_HEADER_ONLY)
if(INSTALL_PROJECT)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/miniz.pc
DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig)
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif()
endif()