summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2015-08-14 15:48:01 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2015-08-14 15:48:01 (GMT)
commitfb77c2c54bc341e76a83f646e6d75662c44179fc (patch)
tree74f70e695f73781489e4db8918321fa8580ad8fb /Help
parent17ecfd8210b4db74753c4565b10a2b75dfa4c480 (diff)
downloadCMake-fb77c2c54bc341e76a83f646e6d75662c44179fc.zip
CMake-fb77c2c54bc341e76a83f646e6d75662c44179fc.tar.gz
CMake-fb77c2c54bc341e76a83f646e6d75662c44179fc.tar.bz2
try_compile: Propogate the CMAKE_LINK_SEARCH_ variables
Diffstat (limited to 'Help')
-rw-r--r--Help/command/try_compile.rst7
-rw-r--r--Help/variable/CMAKE_LINK_SEARCH_END_STATIC.rst5
-rw-r--r--Help/variable/CMAKE_LINK_SEARCH_START_STATIC.rst5
3 files changed, 13 insertions, 4 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst
index 9a70885..23c26ad 100644
--- a/Help/command/try_compile.rst
+++ b/Help/command/try_compile.rst
@@ -96,5 +96,12 @@ the try_compile call of interest, and then re-run cmake again with
Other Behavior Settings
^^^^^^^^^^^^^^^^^^^^^^^
+If set, the following variables are passed in to the generated
+try_compile CMakeLists.txt to initialize compile target properties with
+default values:
+
+* :variable:`CMAKE_LINK_SEARCH_START_STATIC`
+* :variable:`CMAKE_LINK_SEARCH_END_STATIC`
+
Set the :variable:`CMAKE_TRY_COMPILE_CONFIGURATION` variable to choose
a build configuration.
diff --git a/Help/variable/CMAKE_LINK_SEARCH_END_STATIC.rst b/Help/variable/CMAKE_LINK_SEARCH_END_STATIC.rst
index 8a9951d..673f5d8 100644
--- a/Help/variable/CMAKE_LINK_SEARCH_END_STATIC.rst
+++ b/Help/variable/CMAKE_LINK_SEARCH_END_STATIC.rst
@@ -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`.
diff --git a/Help/variable/CMAKE_LINK_SEARCH_START_STATIC.rst b/Help/variable/CMAKE_LINK_SEARCH_START_STATIC.rst
index 715db4b..223702c 100644
--- a/Help/variable/CMAKE_LINK_SEARCH_START_STATIC.rst
+++ b/Help/variable/CMAKE_LINK_SEARCH_START_STATIC.rst
@@ -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`.