diff options
author | friendlyanon <friendlyanon_@hotmail.com> | 2022-11-11 15:15:30 (GMT) |
---|---|---|
committer | friendlyanon <friendlyanon_@hotmail.com> | 2022-11-11 21:49:36 (GMT) |
commit | 59573bf5b9afb2157c73b18dd189a0927dafee52 (patch) | |
tree | a51943c3be8f4430a314560e5afba145013b28a3 /Help/command/project.rst | |
parent | 23f3dd9f7c87bbf02685f388cb3913a8878e4f3b (diff) | |
download | CMake-59573bf5b9afb2157c73b18dd189a0927dafee52.zip CMake-59573bf5b9afb2157c73b18dd189a0927dafee52.tar.gz CMake-59573bf5b9afb2157c73b18dd189a0927dafee52.tar.bz2 |
project: Warn at top-level if `cmake_minimum_required` wasn't called
The top-level project() call will now issue an AUTHOR_WARNING if it
wasn't called after cmake_minimum_required().
Fixes: #24071
Diffstat (limited to 'Help/command/project.rst')
-rw-r--r-- | Help/command/project.rst | 3 |
1 files changed, 2 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`. |