Преглед изворни кода

Help: Document behavior of cmake_minimum_required in a function

Add a note to the cmake_minimum_required documentation about the
limits of calling it in a function.
Brad King пре 10 година
родитељ
комит
e5f8ead50b
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Help/command/cmake_minimum_required.rst

+ 4 - 0
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.