mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 15:19:56 -06:00
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
10 lines
298 B
CMake
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)
|