summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/project/LanguagesTwice.cmake
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 /Tests/RunCMake/project/LanguagesTwice.cmake
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 'Tests/RunCMake/project/LanguagesTwice.cmake')
-rw-r--r--Tests/RunCMake/project/LanguagesTwice.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/project/LanguagesTwice.cmake b/Tests/RunCMake/project/LanguagesTwice.cmake
new file mode 100644
index 0000000..6c4a3dc
--- /dev/null
+++ b/Tests/RunCMake/project/LanguagesTwice.cmake
@@ -0,0 +1,2 @@
+project(ProjectA LANGUAGES NONE LANGUAGES)
+message("This line not reached.")