1 2 3 4 5 6 7 8 9 10 11
# Should run, even though main.cpp does not exist and we call error in the last line. # subdir_done jumps to end, so both lines are not executed. project('example exit') if true subdir_done() endif executable('main', 'main.cpp') error('Unreachable')