cmake: Add POST_BUILD to custom commands for CMP0175 (#12548)

This commit is contained in:
Siddhant Shekhar authored and Jonathan White committed 2025-10-25 19:52:11 -04:00
1 parent 99b7407a02
commit 559783bcca
1 file changed
+3
+3
View File
@@ -74,16 +74,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})