summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2025-03-10 20:18:25 +0100
committerSlávek Banko <[email protected]>2025-03-11 03:38:18 +0100
commit59d811fb07a4923e4b7d542e152749c45e5be787 (patch)
tree902224c6266e6845a411468c4bd713ab4d2ab446
parentb0de2850a25f6588713d6da0af23f9c5ce8a5084 (diff)
downloadtdebase-59d811fb07a4923e4b7d542e152749c45e5be787.tar.gz
tdebase-59d811fb07a4923e4b7d542e152749c45e5be787.zip
Fix CMake rules for relationship between add_custom_target and add_custom_command
for konsole fonts. This solves the warning about the use of wrong syntax. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit f7e87e96d2c8334c28281aa11c44f6ef54b55aae)
-rw-r--r--konsole/fonts/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/konsole/fonts/CMakeLists.txt b/konsole/fonts/CMakeLists.txt
index e61aa959b..379f357e2 100644
--- a/konsole/fonts/CMakeLists.txt
+++ b/konsole/fonts/CMakeLists.txt
@@ -19,14 +19,16 @@ install( CODE "execute_process( COMMAND mkfontdir \$ENV{DESTDIR}${DATA_INSTALL_D
# FIXME generating fonts can be improved
-add_custom_target( console8x16.pcf.gz ALL )
-add_custom_command( TARGET console8x16.pcf.gz
+add_custom_target( konsole-font-8x16 ALL
+ DEPENDS console8x16.pcf.gz )
+add_custom_command( OUTPUT console8x16.pcf.gz
COMMAND bdftopcf -o console8x16.pcf ${CMAKE_CURRENT_SOURCE_DIR}/console8x16.bdf
COMMAND gzip -f --best console8x16.pcf
DEPENDS console8x16.bdf )
-add_custom_target( 9x15.pcf.gz ALL )
-add_custom_command( TARGET 9x15.pcf.gz
+add_custom_target( konsole-font-9x15 ALL
+ DEPENDS 9x15.pcf.gz )
+add_custom_command( OUTPUT 9x15.pcf.gz
COMMAND bdftopcf -o 9x15.pcf ${CMAKE_CURRENT_SOURCE_DIR}/9x15.bdf
COMMAND gzip -f --best 9x15.pcf
DEPENDS 9x15.bdf )