diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-17 22:00:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-18 19:28:09 (GMT) |
commit | 1ec1bf9f071ce930094171ab45f2dbc02c57927b (patch) | |
tree | 5fc0521d2213c521dc5c83671ad7d74f3087f255 /Tests | |
parent | 9b4aefad41218866e392021b6d7239b2eeb50390 (diff) | |
download | CMake-1ec1bf9f071ce930094171ab45f2dbc02c57927b.zip CMake-1ec1bf9f071ce930094171ab45f2dbc02c57927b.tar.gz CMake-1ec1bf9f071ce930094171ab45f2dbc02c57927b.tar.bz2 |
if(): Test the effect of cmMakefileCall use in elseif() handling.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/if/RunCMakeTest.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/if/elseif-message-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/if/elseif-message-stderr.txt | 8 | ||||
-rw-r--r-- | Tests/RunCMake/if/elseif-message.cmake | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/RunCMakeTest.cmake b/Tests/RunCMake/if/RunCMakeTest.cmake index 6b6b74b..b5546a7 100644 --- a/Tests/RunCMake/if/RunCMakeTest.cmake +++ b/Tests/RunCMake/if/RunCMakeTest.cmake @@ -2,3 +2,4 @@ include(RunCMake) run_cmake(IsDirectory) run_cmake(IsDirectoryLong) +run_cmake(elseif-message) diff --git a/Tests/RunCMake/if/elseif-message-result.txt b/Tests/RunCMake/if/elseif-message-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/if/elseif-message-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/if/elseif-message-stderr.txt b/Tests/RunCMake/if/elseif-message-stderr.txt new file mode 100644 index 0000000..c73977c --- /dev/null +++ b/Tests/RunCMake/if/elseif-message-stderr.txt @@ -0,0 +1,8 @@ +CMake Error at elseif-message.cmake:[0-9]+ \(elseif\): + given arguments: + + "Unknown" "arguments" + + Unknown arguments specified +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/if/elseif-message.cmake b/Tests/RunCMake/if/elseif-message.cmake new file mode 100644 index 0000000..5930966 --- /dev/null +++ b/Tests/RunCMake/if/elseif-message.cmake @@ -0,0 +1,4 @@ + +if (0) +elseif(Unknown arguments) +endif() |