diff options
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/project.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/command/project.rst b/Help/command/project.rst index cb7d3fc..aabab65 100644 --- a/Help/command/project.rst +++ b/Help/command/project.rst @@ -5,7 +5,7 @@ Set a name and enable languages for the entire project. .. code-block:: cmake - project(<PROJECT-NAME> [<language-name>...]) + project(<PROJECT-NAME> [LANGUAGES] [<language-name>...]) Sets the name of the project and stores the name in the :variable:`PROJECT_NAME` variable. Additionally this sets variables @@ -18,7 +18,8 @@ Sets the name of the project and stores the name in the Optionally you can specify which languages your project supports. Example languages are ``C``, ``CXX`` (i.e. C++), ``Fortran``, etc. By default ``C`` and ``CXX`` are enabled if no language options are -given. Specify language ``NONE`` to skip enabling any languages. +given. Specify language ``NONE``, or use the ``LANGUAGES`` keyword +and list no languages, to skip enabling any languages. If a variable exists called :variable:`CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE`, the file pointed to by that variable will be included as the last step of the |