Skip to content

Commit

Permalink
CMake: rename exported targets file
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Feb 13, 2025
1 parent ef6aa48 commit 708990b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/exiv2Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(NOT @BUILD_SHARED_LIBS@) # if(NOT BUILD_SHARED_LIBS)
endif()
endif()

include("${CMAKE_CURRENT_LIST_DIR}/exiv2Export.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/exiv2Targets.cmake")

check_required_components(exiv2)

Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ set(requires_private_for_pc_file

write_basic_package_version_file(exiv2ConfigVersion.cmake COMPATIBILITY ExactVersion)

install(TARGETS exiv2lib EXPORT exiv2Export)
install(TARGETS exiv2lib EXPORT exiv2Targets)

include(CMakePackageConfigHelpers)
configure_package_config_file(
Expand All @@ -327,7 +327,7 @@ configure_package_config_file(
install(FILES ${PUBLIC_HEADERS} ${CMAKE_BINARY_DIR}/exv_conf.h ${CMAKE_BINARY_DIR}/exiv2lib_export.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/exiv2)

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

0 comments on commit 708990b

Please sign in to comment.