From cf355d48b139cc0d69ebdc860fb72a8d33831523 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 29 Jul 2025 03:21:33 -0600 Subject: [PATCH] CMake: Install AppStream metainfo file with absolute path Fixes CMake install with a separate build directory breakage introduced by 1b1eae4409c831f6b9d394d95e9c77253d63446e --- UI/cmake/InstallRules.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/cmake/InstallRules.cmake b/UI/cmake/InstallRules.cmake index 76462ef829a..bda82f53f96 100644 --- a/UI/cmake/InstallRules.cmake +++ b/UI/cmake/InstallRules.cmake @@ -119,7 +119,7 @@ if (ENABLE_INSTALL_FREEDESKTOP_FILES) OUTPUT_VARIABLE GIT_HASH OUTPUT_STRIP_TRAILING_WHITESPACE ) - configure_file(${FREEDESKTOP_RESOURCE_DIR}/org.ladybird.Ladybird.metainfo.xml.in org.ladybird.Ladybird.metainfo.xml @ONLY) + configure_file("${FREEDESKTOP_RESOURCE_DIR}/org.ladybird.Ladybird.metainfo.xml.in" "${CMAKE_CURRENT_BINARY_DIR}/org.ladybird.Ladybird.metainfo.xml" @ONLY) install(FILES "${FREEDESKTOP_RESOURCE_DIR}/org.ladybird.Ladybird.svg" DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps" @@ -136,7 +136,7 @@ if (ENABLE_INSTALL_FREEDESKTOP_FILES) COMPONENT ladybird_Runtime ) install(FILES - "org.ladybird.Ladybird.metainfo.xml" + "${CMAKE_CURRENT_BINARY_DIR}/org.ladybird.Ladybird.metainfo.xml" DESTINATION "${CMAKE_INSTALL_DATADIR}/metainfo" COMPONENT ladybird_Runtime )