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.
cmake/Tests/RunCMake/cmake_language/exit_9_script_control.cmake

25 lines
634 B

function(exit_macro)
cmake_language(EXIT 9)
message(FATAL_ERROR "This should not be reached!")
endfunction()
function(exit_function)
exit_macro()
message(FATAL_ERROR "This should not be reached!")
endfunction()
block()
if(1)
foreach(i IN ITEMS a b)
while(1)
exit_function()
message(FATAL_ERROR "This should not be reached!")
endwhile()
message(FATAL_ERROR "This should not be reached!")
endforeach()
message(FATAL_ERROR "This should not be reached!")
endif()
message(FATAL_ERROR "This should not be reached!")
endblock()
message(FATAL_ERROR "This should not be reached!")