summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2015-01-02 03:30:08 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-26 15:05:26 (GMT)
commite2b1f0583f7293bce280dfab397e96acf8a5b26e (patch)
treed3bbabefbf6fb944f4f2ada8fd3a0765a7964879 /Tests/RunCMake
parent07cbe3640e3afc879a07b6510de4c6e437f43f3e (diff)
downloadCMake-e2b1f0583f7293bce280dfab397e96acf8a5b26e.zip
CMake-e2b1f0583f7293bce280dfab397e96acf8a5b26e.tar.gz
CMake-e2b1f0583f7293bce280dfab397e96acf8a5b26e.tar.bz2
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/RunCMake')
-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 eceffec..652bcfc 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\)