From: Mike Gabriel Date: Tue, 10 Sep 2024 10:19:14 +0000 (+0200) Subject: Rename FindLibSolv.cmake to LibZyppConfig.cmake after installation. X-Git-Tag: archive/raspbian/17.35.10-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4adae84acac3d610c7a6b43994b9f38128f54274;p=libzypp.git Rename FindLibSolv.cmake to LibZyppConfig.cmake after installation. Forwarded: https://github.com/openSUSE/libzypp/issues/28 Gbp-Pq: Name 1002_cmake-module-path-fix.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 786e1aa..67a6914 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -344,9 +344,9 @@ MESSAGE(STATUS "Writing pkg-config file...") CONFIGURE_FILE(${LIBZYPP_SOURCE_DIR}/libzypp.pc.cmake ${LIBZYPP_BINARY_DIR}/libzypp.pc @ONLY) INSTALL( FILES ${LIBZYPP_BINARY_DIR}/libzypp.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig ) -MESSAGE(STATUS "FindZypp.cmake will be installed in ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules") -INSTALL( FILES ${LIBZYPP_SOURCE_DIR}/cmake/modules/FindZypp.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules ) -INSTALL( FILES ${LIBZYPP_SOURCE_DIR}/cmake/modules/ZyppCommon.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules ) +MESSAGE(STATUS "ZyppConfig.cmake will be installed in ${LIB_INSTALL_DIR}/cmake/Zypp/") +INSTALL( FILES ${LIBZYPP_SOURCE_DIR}/cmake/modules/FindZypp.cmake RENAME ZyppConfig.cmake DESTINATION ${LIB_INSTALL_DIR}/cmake/Zypp/ ) +INSTALL( FILES ${LIBZYPP_SOURCE_DIR}/cmake/modules/ZyppCommon.cmake DESTINATION ${LIB_INSTALL_DIR}/cmake/Zypp/ ) #################################################################### # config templates