Draft: Ninja Multi-Config: Generate per-config utility target scripts
Only one utility script is being generated for multi-config ninja.
Only last config is visible. e.g. when to copy files, via cmake command in add_custom_command When files are set like $<$<CONFIG:Debug>:file1>$<$<CONFIG:Release>:file2>
, only one utility.bat is generated. But there should be multiple and per config.
add_custom_command(
TARGET copy_files
PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<$<CONFIG:Debug>:file1>$<$<CONFIG:Release>:file2> $<CONFIG>/)
Fixes: #21481 (closed)
Topic-rename: nmc-utility-targets
Edited by Brad King