From 6f59444439f89ae2508c8f7d63ae0b79752afefa Mon Sep 17 00:00:00 2001 From: Siddhant Shekhar Date: Sat, 11 Oct 2025 19:03:42 +0530 Subject: [PATCH] cmake: Add POST_BUILD to custom commands for CMP0175 (#12548) --- share/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt index f120fc6e2..f41a03bcf 100644 --- a/share/CMakeLists.txt +++ b/share/CMakeLists.txt @@ -79,16 +79,19 @@ install(FILES icons/application/256x256/apps/keepassxc.png DESTINATION ${DATA_IN add_custom_target(icons) add_custom_command(TARGET icons + POST_BUILD COMMAND bash ./icons/minify.sh WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) if(APPLE) add_custom_command(TARGET icons + POST_BUILD COMMAND png2icns macosx/keepassxc.icns icons/application/256x256/apps/keepassxc.png WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endif() # ICO for Windows add_custom_command(TARGET icons + POST_BUILD COMMAND bash ./windows/create-ico.sh icons/application/scalable/apps/keepassxc.svg windows/keepassxc.ico COMMAND bash ./windows/create-ico.sh icons/application/scalable/mimetypes/application-x-keepassxc.svg windows/keepassxc-kdbx.ico WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})