diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-06-16 14:39:39 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-06-16 14:39:39 (GMT) |
commit | c017098d4d06ba114085ba7de47b99fc0b71e8d0 (patch) | |
tree | eabd3fa444c96599d490b12ab49cbccda21866d3 /Tests | |
parent | a9ff600a509d6af1c25f482e1ce0184c97dd3f54 (diff) | |
download | CMake-c017098d4d06ba114085ba7de47b99fc0b71e8d0.zip CMake-c017098d4d06ba114085ba7de47b99fc0b71e8d0.tar.gz CMake-c017098d4d06ba114085ba7de47b99fc0b71e8d0.tar.bz2 |
CMake: Allow override of unexpected non-flow-control commands
Fixes: #22310
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/Syntax/OverrideProject-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/Syntax/OverrideProject-stderr.txt | 3 | ||||
-rw-r--r-- | Tests/RunCMake/Syntax/RunCMakeTest.cmake | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/OverrideProject-result.txt b/Tests/RunCMake/Syntax/OverrideProject-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/Syntax/OverrideProject-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/Syntax/OverrideProject-stderr.txt b/Tests/RunCMake/Syntax/OverrideProject-stderr.txt new file mode 100644 index 0000000..862d5c8 --- /dev/null +++ b/Tests/RunCMake/Syntax/OverrideProject-stderr.txt @@ -0,0 +1,3 @@ +^CMake Error at [^ +]*/Tests/RunCMake/Syntax/Override\.cmake:[0-9]+ \(message\): + This shouldn't happen$ diff --git a/Tests/RunCMake/Syntax/RunCMakeTest.cmake b/Tests/RunCMake/Syntax/RunCMakeTest.cmake index 4d24657..f0c287c 100644 --- a/Tests/RunCMake/Syntax/RunCMakeTest.cmake +++ b/Tests/RunCMake/Syntax/RunCMakeTest.cmake @@ -150,3 +150,4 @@ run_override(If) run_override(Macro) run_override(Return) run_override(While) +run_override(Project) |