diff options
author | Josef Angstenberger <code@jtxa.de> | 2021-06-10 21:42:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-17 15:57:56 (GMT) |
commit | fe60154fe8efc7528da92f6b9a6b17a6f9d4a179 (patch) | |
tree | 58ee8040eb04c4e9be5017cc562c3adae0764ec4 /Help/guide/tutorial/A Basic Starting Point.rst | |
parent | 25dde20cc5df77326f369c2dbcca3edcf687e581 (diff) | |
download | CMake-fe60154fe8efc7528da92f6b9a6b17a6f9d4a179.zip CMake-fe60154fe8efc7528da92f6b9a6b17a6f9d4a179.tar.gz CMake-fe60154fe8efc7528da92f6b9a6b17a6f9d4a179.tar.bz2 |
Tutorial: Small formatting improvements
- Use inline literals for all code fragments and names.
- Add missing console code-blocks.
- Always use c++, not c as code language.
Diffstat (limited to 'Help/guide/tutorial/A Basic Starting Point.rst')
-rw-r--r-- | Help/guide/tutorial/A Basic Starting Point.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Help/guide/tutorial/A Basic Starting Point.rst b/Help/guide/tutorial/A Basic Starting Point.rst index 296b3c3..e5f7b91 100644 --- a/Help/guide/tutorial/A Basic Starting Point.rst +++ b/Help/guide/tutorial/A Basic Starting Point.rst @@ -56,7 +56,7 @@ Using your favorite editor, create ``TutorialConfig.h.in`` in the source directory with the following contents: .. literalinclude:: Step2/TutorialConfig.h.in - :language: cmake + :language: c++ When CMake configures this header file the values for ``@Tutorial_VERSION_MAJOR@`` and ``@Tutorial_VERSION_MINOR@`` will be @@ -89,9 +89,9 @@ We will need to explicitly state in the CMake code that it should use the correct flags. The easiest way to enable support for a specific C++ standard in CMake is by using the :variable:`CMAKE_CXX_STANDARD` variable. For this tutorial, set the :variable:`CMAKE_CXX_STANDARD` variable in the -``CMakeLists.txt`` file to 11 and :variable:`CMAKE_CXX_STANDARD_REQUIRED` to -True. Make sure to add the ``CMAKE_CXX_STANDARD`` declarations above the call -to ``add_executable``. +``CMakeLists.txt`` file to ``11`` and :variable:`CMAKE_CXX_STANDARD_REQUIRED` +to ``True``. Make sure to add the ``CMAKE_CXX_STANDARD`` declarations above the +call to ``add_executable``. .. literalinclude:: Step2/CMakeLists.txt :language: cmake |