diff options
author | Brad King <brad.king@kitware.com> | 2022-05-16 14:16:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-16 14:47:21 (GMT) |
commit | a6562ff57908e6f03ef44eb0438ba9937f28174c (patch) | |
tree | 66891e45efadaa7589705021e66d96a476088e82 /Help/release | |
parent | 4843a376767c2c4b46e29ed85ac823443317ca40 (diff) | |
download | CMake-a6562ff57908e6f03ef44eb0438ba9937f28174c.zip CMake-a6562ff57908e6f03ef44eb0438ba9937f28174c.tar.gz CMake-a6562ff57908e6f03ef44eb0438ba9937f28174c.tar.bz2 |
try_compile: Add option to skip passing platform variables
Add a `CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable to tell
`try_compile` not to pass platform variables to the test project.
Issue: #23219
Diffstat (limited to 'Help/release')
-rw-r--r-- | Help/release/dev/try_compile-project-platform-vars.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/release/dev/try_compile-project-platform-vars.rst b/Help/release/dev/try_compile-project-platform-vars.rst index 2f409a3..06596d4 100644 --- a/Help/release/dev/try_compile-project-platform-vars.rst +++ b/Help/release/dev/try_compile-project-platform-vars.rst @@ -4,3 +4,7 @@ try_compile-project-platform-vars * The :command:`try_compile` command :ref:`whole-project <Try Compiling Whole Projects>` signature now propagates platform variables. See policy :policy:`CMP0137`. + +* The :variable:`CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable + was added to tell the :command:`try_compile` command not to + pass any platform variables to the test project. |