Skip to content

pkgconfig installs into [prefix]/share instead of [prefix]/lib

Submitted by trevor

Assigned to Nobody

Link to original bugzilla bug (#338)
Version: 3.0

Description

in CMakeLists.txt:

if(EIGEN_BUILD_PKGCONFIG)  
    configure_file(eigen3.pc.in eigen3.pc)  
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen3.pc  
        DESTINATION share/pkgconfig  
        )  
endif(EIGEN_BUILD_PKGCONFIG)  

would it be possible to have the 'share' changed to 'lib' or at least make it configurable at compile-time? this is resulting in a non-standard location with homebrew package management in os x ( http://mxcl.github.com/homebrew/ )

for a counterexample, here's the approach CMinpack takes that installs as expected -
http://devernay.free.fr/hacks/cminpack/cminpack.html
http://devernay.free.fr/hacks/cminpack/cminpack-1.1.3.tar.gz

in CMakeLists.txt:
set(pkg_conf_file ${CMAKE_CURRENT_BINARY_DIR}/cminpack.pc)
configure_file(cminpack.pc.in ${pkg_conf_file} @Only)
install(FILES ${pkg_conf_file}
DESTINATION ${CMINPACK_LIB_INSTALL_DIR}/pkgconfig/ COMPONENT pkgconfig)

Edited by Eigen Bugzilla