From 8a55be1933b8691ed076205f43f3e3dc1a9d2da1 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 13 Oct 2024 16:49:05 +0100 Subject: [PATCH] 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 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f431fc..f6019f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -348,9 +348,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 -- 2.30.2