diff options
author | Brad King <brad.king@kitware.com> | 2022-05-17 12:57:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-17 12:57:55 (GMT) |
commit | a7cd15a61c5708ba50482ee485b4c102146861d0 (patch) | |
tree | d55e53a1b1085ed39f251fbf804a72c7fd2b09a8 /Help/command | |
parent | 20ed6f697e997f597b1e60d16edf711792e94965 (diff) | |
parent | a6562ff57908e6f03ef44eb0438ba9937f28174c (diff) | |
download | CMake-a7cd15a61c5708ba50482ee485b4c102146861d0.zip CMake-a7cd15a61c5708ba50482ee485b4c102146861d0.tar.gz CMake-a7cd15a61c5708ba50482ee485b4c102146861d0.tar.bz2 |
Merge topic 'try_compile-project-platform-vars'
a6562ff579 try_compile: Add option to skip passing platform variables
4843a37676 try_compile: Propagate platform variables in project-mode too
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7265
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/try_compile.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst index 4b2a631..806a98d 100644 --- a/Help/command/try_compile.rst +++ b/Help/command/try_compile.rst @@ -7,6 +7,8 @@ try_compile Try building some code. +.. _`Try Compiling Whole Projects`: + Try Compiling Whole Projects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -25,6 +27,15 @@ will not be deleted after this command is run. Specify ``<targetName>`` to build a specific target instead of the ``all`` or ``ALL_BUILD`` target. See below for the meaning of other options. +.. versionchanged:: 3.24 + CMake variables describing platform settings, and those listed by the + :variable:`CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` variable, are propagated + into the project's build configuration. See policy :policy:`CMP0137`. + Previously this was only done by the + :ref:`source file <Try Compiling Source Files>` signature. + +.. _`Try Compiling Source Files`: + Try Compiling Source Files ^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -205,3 +216,7 @@ a build configuration. .. versionchanged:: 3.14 For the :generator:`Green Hills MULTI` generator the GHS toolset and target system customization cache variables are also propagated into the test project. + +.. versionadded:: 3.24 + The :variable:`CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable may be + set to disable passing platform variables into the test project. |