summaryrefslogtreecommitdiffstats
path: root/Help/command/try_compile.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-19 18:23:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-19 19:07:38 (GMT)
commit7f1bd9fe6910f7633d98dec018cc01331a46b87e (patch)
treed7f1e58c327d7aecd6ce861b6cd6b3c65c8bff71 /Help/command/try_compile.rst
parent509b1f08ea3ee1d8063efc81fee851ee075b3c97 (diff)
downloadCMake-7f1bd9fe6910f7633d98dec018cc01331a46b87e.zip
CMake-7f1bd9fe6910f7633d98dec018cc01331a46b87e.tar.gz
CMake-7f1bd9fe6910f7633d98dec018cc01331a46b87e.tar.bz2
try_compile: Add option to control type of target
Create a `CMAKE_TRY_COMPILE_TARGET_TYPE` option to specify use of `add_library(... STATIC ...)` for the generated test project. This will be useful for cross-compiling toolchains that cannot link a binary without custom flags or scripts.
Diffstat (limited to 'Help/command/try_compile.rst')
-rw-r--r--Help/command/try_compile.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst
index 28dae80..78b1bc7 100644
--- a/Help/command/try_compile.rst
+++ b/Help/command/try_compile.rst
@@ -112,3 +112,6 @@ The current setting of :policy:`CMP0065` is set in the generated project.
Set the :variable:`CMAKE_TRY_COMPILE_CONFIGURATION` variable to choose
a build configuration.
+
+Set the :variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` variable to specify
+the type of target used for the source file signature.