Rename FindLibSolv.cmake to LibZyppConfig.cmake after installation.
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>
Sun, 15 Sep 2024 08:59:58 +0000 (10:59 +0200)
committerLuca Boccassi <bluca@debian.org>
Sun, 15 Sep 2024 08:59:58 +0000 (10:59 +0200)
Forwarded: https://github.com/openSUSE/libzypp/issues/28

Gbp-Pq: Name 1002_cmake-module-path-fix.patch

CMakeLists.txt

index 6abdf4057882e232ab8ac4e1c783ba1cdfb7a387..7a97ee4b07b16a26325e3d77e8d74f1982d9ba3e 100644 (file)
@@ -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