mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-07 23:59:41 -06:00
10 lines
237 B
CMake
10 lines
237 B
CMake
include("${COUNT_FILE}" OPTIONAL)
|
|
if(NOT COUNT)
|
|
set(COUNT 0)
|
|
endif()
|
|
math(EXPR COUNT "${COUNT} + 1")
|
|
file(WRITE "${COUNT_FILE}" "set(COUNT ${COUNT})\n")
|
|
if(COUNT EQUAL 2)
|
|
message(FATAL_ERROR "this test fails on the 2nd run")
|
|
endif()
|