mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-10 01:28:02 +00:00
Propagate the COMMENT section of add_custom_command(OUTPUT) as Xcode Build Phase, if present. Otherwise fallback to the current behavior Fixes: #27910
7 lines
257 B
CMake
7 lines
257 B
CMake
add_custom_command(
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/out.txt"
|
|
COMMAND ${CMAKE_COMMAND} -E echo "Generating out.txt"
|
|
COMMENT "My Custom Command Build Phase Name $<CONFIG>"
|
|
)
|
|
add_custom_target(drive ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/out.txt")
|