mirror of
https://github.com/reactos/CMake.git
synced 2024-12-04 09:54:15 +00:00
783c375766
The actual file timestamp dependency is known to not work on Visual Studio or Xcode generators. Tolerate such failure for these generators (Tests/CustomCommand already covers using OBJECT_DEPENDS to pull a custom command into a target, and that still works with these generators).
8 lines
184 B
CMake
8 lines
184 B
CMake
if(NOT EXISTS "${txt}" OR NOT EXISTS "${exe}")
|
|
file(REMOVE "${out}")
|
|
elseif("${exe}" IS_NEWER_THAN "${txt}")
|
|
file(WRITE "${out}" "1\n")
|
|
else()
|
|
file(WRITE "${out}" "0\n")
|
|
endif()
|