mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 23:30:35 -06:00
Move rejection of `#`, `<`, and `>` characters in outputs and byproducts to a generate-time check. This removes the front-end check that disallowed generator expressions. The generators have already been updated to handle them. Fixes: #12877
22 lines
644 B
CMake
22 lines
644 B
CMake
add_custom_command(
|
|
OUTPUT "$<1:out.txt>"
|
|
COMMAND ${CMAKE_COMMAND} -E touch "out.txt"
|
|
VERBATIM
|
|
)
|
|
add_custom_command(
|
|
OUTPUT "out-$<CONFIG>.txt"
|
|
COMMAND ${CMAKE_COMMAND} -E touch "out-$<CONFIG>.txt"
|
|
VERBATIM
|
|
)
|
|
add_custom_command(
|
|
OUTPUT "out-$<CONFIG>-$<CONFIG>.txt"
|
|
COMMAND ${CMAKE_COMMAND} -E touch "out-$<CONFIG>-$<CONFIG>.txt"
|
|
VERBATIM
|
|
)
|
|
add_custom_command(
|
|
OUTPUT "out-$<CONFIG>-$<CONFIG:Debug>.txt"
|
|
COMMAND ${CMAKE_COMMAND} -E touch "out-$<CONFIG>-$<CONFIG:Debug>.txt"
|
|
VERBATIM
|
|
)
|
|
add_custom_target(foo DEPENDS "out.txt" "out-$<CONFIG>.txt" "out-$<CONFIG>-$<CONFIG>.txt" "out-$<CONFIG>-$<CONFIG:Debug>.txt")
|