summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-15 13:51:12 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-15 13:51:20 (GMT)
commit82e49021fec49d1b8243444eed44c6862e2d6ddc (patch)
tree6803875c45d52cefe181d4e32349bbd5cf129442 /Help
parente58936fd6d1878891b3d3e0d0b996aa7fd93faa2 (diff)
parent59573bf5b9afb2157c73b18dd189a0927dafee52 (diff)
downloadCMake-82e49021fec49d1b8243444eed44c6862e2d6ddc.zip
CMake-82e49021fec49d1b8243444eed44c6862e2d6ddc.tar.gz
CMake-82e49021fec49d1b8243444eed44c6862e2d6ddc.tar.bz2
Merge topic 'top-level-command-order'
59573bf5b9 project: Warn at top-level if `cmake_minimum_required` wasn't called 23f3dd9f7c RunCMake/project: Ignore exact line number in stderr checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7902
Diffstat (limited to 'Help')
-rw-r--r--Help/command/project.rst3
-rw-r--r--Help/release/dev/top-level-command-order.rst6
2 files changed, 8 insertions, 1 deletions
diff --git a/Help/command/project.rst b/Help/command/project.rst
index 8f32fa3..4e57d09 100644
--- a/Help/command/project.rst
+++ b/Help/command/project.rst
@@ -188,5 +188,6 @@ call exists, CMake will issue a warning and pretend there is a
Call the ``project()`` command near the top of the top-level
``CMakeLists.txt``, but *after* calling :command:`cmake_minimum_required`.
It is important to establish version and policy settings before invoking
- other commands whose behavior they may affect.
+ other commands whose behavior they may affect and for this reason the
+ ``project()`` command will issue a warning if this order is not kept.
See also policy :policy:`CMP0000`.
diff --git a/Help/release/dev/top-level-command-order.rst b/Help/release/dev/top-level-command-order.rst
new file mode 100644
index 0000000..07f87fb
--- /dev/null
+++ b/Help/release/dev/top-level-command-order.rst
@@ -0,0 +1,6 @@
+top-level-command-order
+-----------------------
+
+* The top-level :command:`project` call will now emit an author warning if the
+ documented command order in relation to :command:`cmake_minimum_required` is
+ not respected.