You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
247 B
10 lines
247 B
4 years ago
|
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(NOT COUNT EQUAL 2)
|
||
|
message(FATAL_ERROR "this test passes only on the 2nd run")
|
||
|
endif()
|