if(): Test the effect of cmMakefileCall use in elseif() handling.

This commit is contained in:
Stephen Kelly 2015-05-18 00:00:53 +02:00
parent 9b4aefad41
commit 1ec1bf9f07
4 changed files with 14 additions and 0 deletions

View File

@ -2,3 +2,4 @@ include(RunCMake)
run_cmake(IsDirectory) run_cmake(IsDirectory)
run_cmake(IsDirectoryLong) run_cmake(IsDirectoryLong)
run_cmake(elseif-message)

View File

@ -0,0 +1 @@
1

View File

@ -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\)

View File

@ -0,0 +1,4 @@
if (0)
elseif(Unknown arguments)
endif()