fix some typos

This commit is contained in:
Thom Troy
2018-03-18 17:38:09 +00:00
parent b81da6f68b
commit 33b3ea5683
3 changed files with 5 additions and 16 deletions

View File

@@ -84,21 +84,10 @@ file(GLOB SOURCES "src/*.cpp")
====
[NOTE]
====
An alternative to setting specific file names in the +SOURCES+ variable is
to use a GLOB command to find files using wildcard pattern matching.
[source,cmake]
----
file(GLOB SOURCES "src/*.cpp")
----
====
[TIP]
====
For modern CMake it is normally recommend to not use a variable for sources and to
directly declare the sources in the add_xxx function.
For modern CMake it is NOT recommended to use a variable for sources. Insead it is
typical to directly declare the sources in the add_xxx function.
This is particularly important for glob commands which may not always show you the
correct results if you add a new source file.

View File

@@ -7,8 +7,8 @@ toc::[]
# Introduction
Shows a hello world example which first creates and links a static library. This is a
simplified example showing the libray and binary in the same folder. Typically
these would be in sub-projects as described in section 02-sub-projects
simplified example showing the library and binary in the same folder. Typically
these would be in sub-projects as described in section link:../../02-sub-projects[02-sub-projects]
The files in this tutorial are below: