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
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 ###