cmake/Tests/RunCMake/while/unbalanced-parenthesis.cmake

8 lines
218 B
CMake
Raw Normal View History

2022-03-29 21:10:50 +02:00
set(paren "(")
while(${paren})
message(STATUS "Condition incorrectly true")
break()
2021-11-20 13:41:27 +01:00
endwhile()
2022-03-29 21:10:50 +02:00
# FIXME(#23296): The above condition error is tolerated for compatibility.
message(STATUS "Code incorrectly accepted")