diff options
author | Brad King <brad.king@kitware.com> | 2015-05-18 13:56:13 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-18 13:56:13 (GMT) |
commit | 9b11b040c84ff2f30940541ba8f4e26105765693 (patch) | |
tree | 32287b25101b902bf3e1f1ade05a64d91bc137cc | |
parent | 09a3d21d712a80a94b9a90c10519a42dbee114ae (diff) | |
parent | e5f8ead50b29004847ebc2f7b97bfc0347ccac96 (diff) | |
download | CMake-9b11b040c84ff2f30940541ba8f4e26105765693.zip CMake-9b11b040c84ff2f30940541ba8f4e26105765693.tar.gz CMake-9b11b040c84ff2f30940541ba8f4e26105765693.tar.bz2 |
Merge topic 'doc-cmake_minimum_required-not-in-function'
e5f8ead5 Help: Document behavior of cmake_minimum_required in a function
-rw-r--r-- | Help/command/cmake_minimum_required.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/command/cmake_minimum_required.rst b/Help/command/cmake_minimum_required.rst index 92e3001..9865eeb 100644 --- a/Help/command/cmake_minimum_required.rst +++ b/Help/command/cmake_minimum_required.rst @@ -35,3 +35,7 @@ with an error instead of just a warning. :command:`project` command. It is important to establish version and policy settings before invoking other commands whose behavior 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. |