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 <slavek.banko@axis.cz>
pull/585/head
Slávek Banko 2 months ago
parent 51143d64d4
commit f7e87e96d2
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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 )

Loading…
Cancel
Save