summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2015-01-01 22:30:08 -0500
committerBrad King <brad.king@kitware.com>2015-01-26 10:05:26 -0500
commite2b1f0583f7293bce280dfab397e96acf8a5b26e (patch)
treed3bbabefbf6fb944f4f2ada8fd3a0765a7964879 /Tests
parent07cbe3640e3afc879a07b6510de4c6e437f43f3e (diff)
downloadcmake-e2b1f0583f7293bce280dfab397e96acf8a5b26e.tar.gz
try_run: Add support for LINK_LIBRARIES option.
Most functionality is already implemented in Source/cmCoreTryCompile.{h,cxx}. Document and improve argument parsing. This functionality is already being used by a number of modules, like CheckCSourceCompiles.cmake, but it is not documented.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/try_compile/BadLinkLibraries-stderr.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/try_compile/BadLinkLibraries-stderr.txt b/Tests/RunCMake/try_compile/BadLinkLibraries-stderr.txt
index eceffecc86..652bcfcd10 100644
--- a/Tests/RunCMake/try_compile/BadLinkLibraries-stderr.txt
+++ b/Tests/RunCMake/try_compile/BadLinkLibraries-stderr.txt
@@ -1,5 +1,5 @@
CMake Error at BadLinkLibraries.cmake:2 \(try_compile\):
- Only libraries may be used as try_compile IMPORTED LINK_LIBRARIES. Got
- not_a_library of type UTILITY.
+ Only libraries may be used as try_compile or try_run IMPORTED
+ LINK_LIBRARIES. Got not_a_library of type UTILITY.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)