diff options
author | Brad King <brad.king@kitware.com> | 2016-05-24 19:33:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-25 13:36:19 (GMT) |
commit | d256ba078a10001883487ed6af746af5b9cd9608 (patch) | |
tree | 094283876832165e43db22f3e5bff7205b01d761 /Help/variable | |
parent | fb4791b37ccea1f38b8625b31df952408ab942f3 (diff) | |
download | CMake-d256ba078a10001883487ed6af746af5b9cd9608.zip CMake-d256ba078a10001883487ed6af746af5b9cd9608.tar.gz CMake-d256ba078a10001883487ed6af746af5b9cd9608.tar.bz2 |
try_compile: Optionally forward custom platform variables to test project
Add a `CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` variable to specify a list
of custom variables to be forwarded to a `try_compile` test project.
This will be useful for platform information modules or toolchain files
to forward some platform-specific set of variables from the host project
(perhaps set in its cache) to the test project so that it can build the
same way.
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_TRY_COMPILE_PLATFORM_VARIABLES.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_TRY_COMPILE_PLATFORM_VARIABLES.rst b/Help/variable/CMAKE_TRY_COMPILE_PLATFORM_VARIABLES.rst new file mode 100644 index 0000000..8e43465 --- /dev/null +++ b/Help/variable/CMAKE_TRY_COMPILE_PLATFORM_VARIABLES.rst @@ -0,0 +1,10 @@ +CMAKE_TRY_COMPILE_PLATFORM_VARIABLES +------------------------------------ + +List of variables that the :command:`try_compile` command source file signature +must propagate into the test project in order to target the same platform as +the host project. + +This variable should not be set by project code. It is meant to be set by +CMake's platform information modules for the current toolchain, or by a +toolchain file when used with :variable:`CMAKE_TOOLCHAIN_FILE`. |