diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2017-03-20 20:49:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-22 12:42:35 (GMT) |
commit | edac95b955afdea2d129b32b029bf845dc29cb71 (patch) | |
tree | cf96ba88c3e04fe23daa131817e92dd51515561a /Tests/RunCMake/if/RunCMakeTest.cmake | |
parent | 3be5896e013492cbe1cf65c1c61822b68d9d59c4 (diff) | |
download | CMake-edac95b955afdea2d129b32b029bf845dc29cb71.zip CMake-edac95b955afdea2d129b32b029bf845dc29cb71.tar.gz CMake-edac95b955afdea2d129b32b029bf845dc29cb71.tar.bz2 |
cmIfCommand: Reject duplicate else() and misplaced elseif()
Closes: #14335
Diffstat (limited to 'Tests/RunCMake/if/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/if/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/RunCMakeTest.cmake b/Tests/RunCMake/if/RunCMakeTest.cmake index 077d00a..f54edf7 100644 --- a/Tests/RunCMake/if/RunCMakeTest.cmake +++ b/Tests/RunCMake/if/RunCMakeTest.cmake @@ -3,7 +3,11 @@ include(RunCMake) run_cmake(InvalidArgument1) run_cmake(IsDirectory) run_cmake(IsDirectoryLong) +run_cmake(duplicate-deep-else) +run_cmake(duplicate-else) +run_cmake(duplicate-else-after-elseif) run_cmake(elseif-message) +run_cmake(misplaced-elseif) run_cmake(MatchesSelf) |