d06db7ebe8
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. |
||
---|---|---|
.. | ||
proj | ||
BadLinkLibraries-result.txt | ||
BadLinkLibraries-stderr.txt | ||
BadLinkLibraries.cmake | ||
CMakeLists.txt | ||
NoArgs-result.txt | ||
NoArgs-stderr.txt | ||
NoArgs.cmake | ||
NoCopyFile-result.txt | ||
NoCopyFile-stderr.txt | ||
NoCopyFile.cmake | ||
NoCopyFile2-result.txt | ||
NoCopyFile2-stderr.txt | ||
NoCopyFile2.cmake | ||
NoOutputVariable-result.txt | ||
NoOutputVariable-stderr.txt | ||
NoOutputVariable.cmake | ||
NoOutputVariable2-result.txt | ||
NoOutputVariable2-stderr.txt | ||
NoOutputVariable2.cmake | ||
NonSourceCompileDefinitions-result.txt | ||
NonSourceCompileDefinitions-stderr.txt | ||
NonSourceCompileDefinitions.cmake | ||
NonSourceCopyFile-result.txt | ||
NonSourceCopyFile-stderr.txt | ||
NonSourceCopyFile.cmake | ||
OneArg-result.txt | ||
OneArg-stderr.txt | ||
OneArg.cmake | ||
RunCMakeTest.cmake | ||
TwoArgs-result.txt | ||
TwoArgs-stderr.txt | ||
TwoArgs.cmake | ||
src.c |