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:

View File

@@ -11,7 +11,7 @@ https://cmake.org/[CMake] is a cross-platform open-source meta-build system whic
can build, test and package software. It can be used to support multiple native build environments including
make, Apple's xcode and Microsoft Visual Studio.
This repository includes some example CMake configurations which I have picked up
This repository includes some example modern CMake configurations which I have picked up
when exploring it's usage for various projects. The examples are laid out in a tutorial like format.
The first examples are very basic and slowly increase in complexity drawing on previous examples to show
more complex use cases.