Merge topic 'doc-cmake_minimum_required-not-in-function'

e5f8ead5 Help: Document behavior of cmake_minimum_required in a function
This commit is contained in:
Brad King 2015-05-18 09:56:13 -04:00 committed by CMake Topic Stage
commit 9b11b040c8

View File

@ -35,3 +35,7 @@ with an error instead of just a warning.
:command:`project` command. It is important to establish version :command:`project` command. It is important to establish version
and policy settings before invoking other commands whose behavior and policy settings before invoking other commands whose behavior
they may affect. See also policy :policy:`CMP0000`. they may affect. See also policy :policy:`CMP0000`.
Calling ``cmake_minimum_required()`` inside a :command:`function`
limits some effects to the function scope when invoked. Such calls
should not be made with the intention of having global effects.