try_compile: Propogate the CMAKE_LINK_SEARCH_ variables

This commit is contained in:
Chuck Atkins
2015-08-14 11:48:01 -04:00
parent 17ecfd8210
commit fb77c2c54b
4 changed files with 23 additions and 4 deletions
@@ -13,6 +13,7 @@ back to its starting type. This property switches the final linker
search type to -Bstatic regardless of how it started.
This variable is used to initialize the target property
LINK_SEARCH_END_STATIC for all targets.
:prop_tgt:`LINK_SEARCH_END_STATIC` for all targets. If set, it's
value is also used by the :command:`try_compile` command.
See also CMAKE_LINK_SEARCH_START_STATIC.
See also :variable:`CMAKE_LINK_SEARCH_START_STATIC`.
@@ -14,6 +14,7 @@ when linking an executable statically (e.g. with the GNU -static
option).
This variable is used to initialize the target property
LINK_SEARCH_START_STATIC for all targets.
:prop_tgt:`LINK_SEARCH_START_STATIC` for all targets. If set, it's
value is also used by the :command:`try_compile` command.
See also CMAKE_LINK_SEARCH_END_STATIC.
See also :variable:`CMAKE_LINK_SEARCH_END_STATIC`.