Files
CMake/Tests/RunCMake/Swift/NoWorkToDo.cmake
Jeremy Day 1161ad76ac Swift/Ninja: Always restat swift build commands
The swift toolchain leaves output files untouched
if there are no meaningful input changes; without
restat, this causes ninja to needlessly rebuild
targets that are not actually out-of-date

Fixes: #25496
2024-01-04 13:20:05 -08:00

10 lines
298 B
CMake

cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/hello.swift "")
add_executable(hello1 ${CMAKE_CURRENT_BINARY_DIR}/hello.swift)
set_target_properties(hello1 PROPERTIES ENABLE_EXPORTS TRUE)
add_executable(hello2 ${CMAKE_CURRENT_BINARY_DIR}/hello.swift)