From: Debian Science Maintainers Date: Fri, 22 Nov 2024 14:28:16 +0000 (+0100) Subject: install-pkgconfig-without-lib-for-cross-compile X-Git-Tag: archive/raspbian/2.10.0-4+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a0e5cf67dd22c67d77644484efdbda3e5422df6d;p=dune-common.git install-pkgconfig-without-lib-for-cross-compile Install architecture independent pkgconfig file in /usr/share/pkgconfig This prevents lintian warning pkg-config-unavailable-for-cross-compilation for the header only modules dune-istl, dune-localfunctions, dune-functions, and dune-typetree. Gbp-Pq: Name install-pkgconfig-without-lib-for-cross-compile --- diff --git a/cmake/modules/DuneProject.cmake b/cmake/modules/DuneProject.cmake index 63d870a..ea94e31 100644 --- a/cmake/modules/DuneProject.cmake +++ b/cmake/modules/DuneProject.cmake @@ -532,8 +532,13 @@ endif()") install(FILES config.h.cmake DESTINATION share/${ProjectName}) endif() + if(_has_lib) + set(DUNE_INSTALL_PKGCONFIGDIR ${CMAKE_INSTALL_LIBDIR}) + else() + set(DUNE_INSTALL_PKGCONFIGDIR ${CMAKE_INSTALL_DATAROOTDIR}) + endif() # install pkg-config files - create_and_install_pkconfig(${DUNE_INSTALL_LIBDIR}) + create_and_install_pkconfig(${DUNE_INSTALL_PKGCONFIGDIR}) ########################### ### HEADER CONFIG FILEs ###