Skip to content

Commit

Permalink
install exiv2 cmake module in LIBDIR
Browse files Browse the repository at this point in the history
installed cmake module contains arch dependent library description.
It should be installed not in DATADIR but in LIBDIR.

Signed-off-by: Tomasz Kłoczko <[email protected]>
(cherry picked from commit 3e977c5)
  • Loading branch information
kmilos committed Nov 7, 2023
1 parent 5c91bfc commit 0e668a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ include(CMakePackageConfigHelpers)
configure_package_config_file(
../cmake/exiv2Config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/exiv2Config.cmake
INSTALL_DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/exiv2"
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2"
)

install(FILES
Expand All @@ -294,13 +294,13 @@ install(FILES
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/exiv2)

install(EXPORT exiv2Export
DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/exiv2"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2"
NAMESPACE Exiv2::
)

install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/exiv2ConfigVersion.cmake
${CMAKE_CURRENT_BINARY_DIR}/exiv2Config.cmake
DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/exiv2")
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2")

0 comments on commit 0e668a5

Please sign in to comment.