Commit 0b95bcc98469dbc6fcee934442cf3e07500a5abc

Lisandro Damián Nicanor Pérez Meyer 2019-02-09T19:03:05

Fix installation path of pkgconfig file. If the package is compiled on a multiarch-enabled distribution (Debian and derivatives) the resulting md4c.pc file will have a m-a path in it. In this case it's better to install into LIBDIR.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/CMakeLists.txt b/md4c/CMakeLists.txt
index 4e3e42d..fd90765 100644
--- a/md4c/CMakeLists.txt
+++ b/md4c/CMakeLists.txt
@@ -28,7 +28,7 @@ install(
 
 # Create a pkg-config file
 configure_file(md4c.pc.in md4c.pc @ONLY)
-install(FILES ${CMAKE_BINARY_DIR}/md4c/md4c.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig)
+install(FILES ${CMAKE_BINARY_DIR}/md4c/md4c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 
 # And a CMake file
 install(EXPORT md4cConfig DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/md4c/)