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.
This commit is contained in:
Matt McCormick
2015-01-01 22:30:08 -05:00
committed by Brad King
parent 07cbe3640e
commit e2b1f0583f
5 changed files with 18 additions and 5 deletions
@@ -0,0 +1,5 @@
try-run-link-libraries
----------------------
* The :command:`try_run` command learned to honor the ``LINK_LIBRARIES``
option just as :command:`try_compile` already does.