1CMP0011 2------- 3 4Included scripts do automatic :command:`cmake_policy` PUSH and POP. 5 6In CMake 2.6.2 and below, CMake Policy settings in scripts loaded by 7the :command:`include` and :command:`find_package` commands would affect 8the includer. Explicit invocations of ``cmake_policy(PUSH)`` and 9``cmake_policy(POP)`` were required to isolate policy changes and protect 10the includer. While some scripts intend to affect the policies of their 11includer, most do not. In CMake 2.6.3 and above, :command:`include` and 12:command:`find_package` by default ``PUSH`` and ``POP`` an entry on 13the policy stack around an included 14script, but provide a ``NO_POLICY_SCOPE`` option to disable it. This 15policy determines whether or not to imply ``NO_POLICY_SCOPE`` for 16compatibility. The ``OLD`` behavior for this policy is to imply 17``NO_POLICY_SCOPE`` for :command:`include` and :command:`find_package` commands. 18The ``NEW`` behavior for this policy is to allow the commands to do 19their default cmake_policy ``PUSH`` and ``POP``. 20 21This policy was introduced in CMake version 2.6.3. CMake version 22|release| warns when the policy is not set and uses ``OLD`` behavior. Use 23the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly. 24 25.. include:: DEPRECATED.txt 26