summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-29 14:28:01 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-29 14:40:51 (GMT)
commit16d040c958c68c38b2c0642b4094245af28c1910 (patch)
treec91d9e31022776c5682cd6fe7a673721bd6186b2 /Help
parent00007dcc365797f71ebba2c7d31ab20abc4019e6 (diff)
downloadCMake-16d040c958c68c38b2c0642b4094245af28c1910.zip
CMake-16d040c958c68c38b2c0642b4094245af28c1910.tar.gz
CMake-16d040c958c68c38b2c0642b4094245af28c1910.tar.bz2
project: Add optional LANGUAGES keyword
Teach the project() command to recognize an optional "LANGUAGES" keyword after the project name and prior to the list of languages. Do not allow multiple copies of the keyword. If the keyword is specified and no languages are listed, imply NONE.
Diffstat (limited to 'Help')
-rw-r--r--Help/command/project.rst5
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