summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-15 19:30:34 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-31 14:01:50 (GMT)
commitd06db7ebe80636876d9701064b16cec9d3e2e3cb (patch)
tree10e0c1b7e4b421385749ec5b1b69c689c22ff6e0 /Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt
parentb680824a5fdcc54c265c64ce8958f9d80acad70d (diff)
downloadCMake-d06db7ebe80636876d9701064b16cec9d3e2e3cb.zip
CMake-d06db7ebe80636876d9701064b16cec9d3e2e3cb.tar.gz
CMake-d06db7ebe80636876d9701064b16cec9d3e2e3cb.tar.bz2
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.
Diffstat (limited to 'Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt')
-rw-r--r--Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt b/Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt
index cf02efb..025e658 100644
--- a/Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt
+++ b/Tests/RunCMake/try_compile/NonSourceCompileDefinitions-stderr.txt
@@ -1,4 +1,4 @@
CMake Error at NonSourceCompileDefinitions.cmake:1 \(try_compile\):
- COMPILE_FLAGS specified on a srcdir type TRY_COMPILE
+ COMPILE_DEFINITIONS specified on a srcdir type TRY_COMPILE
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)