[ 
https://issues.apache.org/jira/browse/LOGCXX-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tobias Frost updated LOGCXX-536:
--------------------------------
    Description: 
While  packaging 0.12.1 for Debian I observed that the install target for the 
pkgconfig files and the cmake modules is set to ${CMAKE_INSTALL_DATAROOTDIR}, 
which is usually $PREFIX/share.

However, those files should be installed to ${CMAKE_INSTALL_LIBDIR} (e.g 
$PREFIX/lib/${multi-arch-tuple}/...), as this is the place where cmake and 
pkgconfig will look for them.

I have a patch ready, I will submit a PR later. The patch is available at:

[https://salsa.debian.org/debian/log4cxx/-/blob/debian/experimental/debian/patches/0001-Fix-pkgconfig-cmake-module-install-path.patch]

 

  was:
While  packaging 0.12.1 for Debian I observed that the install target for the 
pkgconfig files and the cmake modules is set to ${CMAKE_INSTALL_DATAROOTDIR}, 
which is usually $PREFIX/share.

However, those files should be installed to ${CMAKE_INSTALL_LIBDIR} (e.g 
$PREFIX/lib/...), as this is the place where cmake and pkgconfig will look for 
them.

I have a patch ready, I will submit a PR later. The patch is available at:

[https://salsa.debian.org/debian/log4cxx/-/blob/debian/experimental/debian/patches/0001-Fix-pkgconfig-cmake-module-install-path.patch]

 


> CMakeLists.txt install pgkconfig and cmake modue to wrong place
> ---------------------------------------------------------------
>
>                 Key: LOGCXX-536
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-536
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.11.0, 0.12.0, 0.12.1
>            Reporter: Tobias Frost
>            Priority: Minor
>
> While  packaging 0.12.1 for Debian I observed that the install target for the 
> pkgconfig files and the cmake modules is set to ${CMAKE_INSTALL_DATAROOTDIR}, 
> which is usually $PREFIX/share.
> However, those files should be installed to ${CMAKE_INSTALL_LIBDIR} (e.g 
> $PREFIX/lib/${multi-arch-tuple}/...), as this is the place where cmake and 
> pkgconfig will look for them.
> I have a patch ready, I will submit a PR later. The patch is available at:
> [https://salsa.debian.org/debian/log4cxx/-/blob/debian/experimental/debian/patches/0001-Fix-pkgconfig-cmake-module-install-path.patch]
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to