diff options
Diffstat (limited to 'Help/policy/CMP0137.rst')
-rw-r--r-- | Help/policy/CMP0137.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/policy/CMP0137.rst b/Help/policy/CMP0137.rst index 2efb906..ba3cb9c 100644 --- a/Help/policy/CMP0137.rst +++ b/Help/policy/CMP0137.rst @@ -21,6 +21,10 @@ the :ref:`whole-project <Try Compiling Whole Projects>` signature. The ``NEW`` behavior for this policy is to pass the same variables that the :ref:`source file <Try Compiling Source Files>` signature does. +Regardless of the policy setting, the +:variable:`CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable may be set +to suppress passing the platform variables through either signature. + This policy was introduced in CMake version 3.24. Use the :command:`cmake_policy` command to set this policy to ``OLD`` or ``NEW`` explicitly. Unlike many policies, CMake version |release| does *not* warn |