Files
CMake/Tests/RunCMake/XcodeProject/XcodeCustomCommandComment.cmake
Anton Tokar de28f37ce4 Xcode: Propagate add_custom_command COMMENT to generated projects
Propagate the COMMENT section of add_custom_command(OUTPUT) as Xcode
Build Phase, if present. Otherwise fallback to the current behavior

Fixes: #27910
2026-07-01 12:10:03 -04:00

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