mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
The Xcode "new build system" only considers a script build phase up to date if it has run before, even if outputs are newer than inputs. Use a deterministic object id for script build phases associated with custom commands so that they do not need to re-run after CMake re-generates the project. Fixes: #21669
6 lines
239 B
CMake
6 lines
239 B
CMake
add_custom_command(OUTPUT out.txt
|
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_LIST_DIR}/RepeatCMake-Custom-Script.cmake
|
|
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/RepeatCMake-Custom-Script.cmake
|
|
)
|
|
add_custom_target(drive ALL DEPENDS out.txt)
|