From 8c3546ce8cf2aa3ff4e5a2b4f07950b9cbd5ad19 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 19 Jul 2019 11:37:18 -0400 Subject: [PATCH] Fix #13 and drop mention of line comment breaking function calls, they seem to work correctly --- chapters/basics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/basics.md b/chapters/basics.md index 4ef9c1c..875378b 100644 --- a/chapters/basics.md +++ b/chapters/basics.md @@ -56,10 +56,10 @@ project(MyProject VERSION 1.0 LANGUAGES CXX) ``` -Now we see even more syntax. Strings are quoted, white space doesn't matter [^3], and the name of the project is the first argument (positional). All the keyword arguments here are optional. The version sets a bunch of variables, like `MyProject_VERSION` and `PROJECT_VERSION`. The languages are C, CXX, Fortran, and CUDA (CMake 3.7+). `C CXX` is the default. In CMake 3.9, `DESCRIPTION` was added to set a project description, as well. The documentation for «command:`project`» may be helpful. +Now we see even more syntax. Strings are quoted, whitespace doesn't matter, and the name of the project is the first argument (positional). All the keyword arguments here are optional. The version sets a bunch of variables, like `MyProject_VERSION` and `PROJECT_VERSION`. The languages are C, CXX, Fortran, and CUDA (CMake 3.7+). `C CXX` is the default. In CMake 3.9, `DESCRIPTION` was added to set a project description, as well. The documentation for «command:`project`» may be helpful. -{% hint style='danger' %} -CMake doesn't care about white space, and you can add comments with the `#` character, but never put a comment inside the function call parenthesis. +{% hint style='info' %} +You can add [comments](https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#comments) with the `#` character. CMake does have an inline syntax for comments too, but it is rarely needed, as whitespace doesn't matter. {% endhint %} There's really nothing special about the project name. No targets are added at this point.