1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 10:47:59 +08:00

Tutorial: Fix typos and mislabeled code blocks

This commit is contained in:
Vito Gamberini
2025-10-03 17:43:02 -04:00
parent 0d01bc72b8
commit c8adfdb0a8
4 changed files with 4 additions and 4 deletions

View File

@@ -200,7 +200,7 @@ To change this we have two options. First, we can edit the file which stores
the cache variables between CMake configuration runs, the "CMake Cache". This
file is ``build/CMakeCache.txt``, in it we can find the option cache variable.
.. code-block:: cmake
.. code-block:: text
//Build the Tutorial executable
TUTORIAL_BUILD_UTILITIES:BOOL=OFF

View File

@@ -414,7 +414,7 @@ Exercise 3 - Finding Other Kinds of Files
In a perfect world every dependency we care about would be packaged correctly,
or at least some other developer would have written a module that discovers it
for us. We do no live in a perfect world, and sometimes we will have to get
for us. We do not live in a perfect world, and sometimes we will have to get
our hands dirty and discover build requirements manually.
For this we have the other find commands enumerated earlier in the step, such

View File

@@ -69,7 +69,7 @@ otherwise it will be ``STATIC``.
add_library(MyLib-static STATIC)
add_library(MyLib-shared SHARED)
# Depends on BUILD_SHARED_LIBRARY
# Depends on BUILD_SHARED_LIBS
add_library(MyLib)
This is desirable behavior, as it allows packagers to determine what kind of

View File

@@ -292,7 +292,7 @@ Sometimes, we need to exercise specific control over the exact options being
passed on the compile and link line. These situations are addressed by
:command:`target_compile_options` and :command:`target_link_options`.
.. code:: c++
.. code:: cmake
target_compile_options(MyApp PRIVATE -Wall -Werror)
target_link_options(MyApp PRIVATE -T LinksScript.ld)