CMake/Tests/RunCMake/try_compile
Brad King d06db7ebe8 try_compile: Refactor argument processing
Process all arguments in a single loop using a simple state machine.
While at it, fix some error message typos.  Also allow LINK_LIBRARIES
with no actual libraries to disable use of the -DLINK_LIBRARIES=...
from the CMAKE_FLAGS.  This was already possible in the old logic if
LINK_LIBRARIES was immediately followed by another keyword argument
instead of the end of the argument list, so allow it in general.
Update the RunCMake.try_compile test cases accordingly.
2013-05-31 10:01:50 -04:00
..
proj try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
BadLinkLibraries-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
BadLinkLibraries-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
BadLinkLibraries.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
CMakeLists.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoArgs-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoArgs-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoArgs.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoCopyFile-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoCopyFile-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoCopyFile.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoCopyFile2-result.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoCopyFile2-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoCopyFile2.cmake try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoOutputVariable-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoOutputVariable2-result.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable2-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable2.cmake try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NonSourceCompileDefinitions-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCompileDefinitions-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NonSourceCompileDefinitions.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCopyFile-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCopyFile-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCopyFile.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
OneArg-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
OneArg-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
OneArg.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
RunCMakeTest.cmake try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
TwoArgs-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
TwoArgs-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
TwoArgs.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
src.c try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00