2019-03-20 17:07:41 +00:00
|
|
|
Use PCDIR CMake option, if configured
|
|
|
|
|
|
|
|
Upstream install the server pkgconfig file into arch-independent directory
|
|
|
|
Reported to upstream as: https://jira.mariadb.org/browse/MDEV-14340
|
|
|
|
|
2020-04-09 01:42:54 +00:00
|
|
|
--- mariadb-10.5.2/support-files/CMakeLists.txt 2020-04-01 01:31:21.426832942 +0200
|
|
|
|
+++ mariadb-10.5.2/support-files/CMakeLists.txt_patched 2020-04-01 01:35:05.808309914 +0200
|
|
|
|
@@ -92,7 +92,11 @@ IF(UNIX)
|
2019-03-20 17:07:41 +00:00
|
|
|
|
|
|
|
CONFIGURE_FILE(mariadb.pc.in ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc @ONLY)
|
|
|
|
CONFIGURE_FILE(rpm/server.cnf ${CMAKE_CURRENT_BINARY_DIR}/rpm/server.cnf @ONLY)
|
|
|
|
+IF(INSTALL_PCDIR)
|
|
|
|
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc DESTINATION ${INSTALL_PCDIR} COMPONENT Development)
|
|
|
|
+ELSE()
|
2020-04-09 01:42:54 +00:00
|
|
|
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig COMPONENT Development)
|
2019-03-20 17:07:41 +00:00
|
|
|
+ENDIF()
|
|
|
|
|
|
|
|
INSTALL(FILES mysql.m4 DESTINATION ${INSTALL_SHAREDIR}/aclocal COMPONENT Development)
|
|
|
|
|