Tutorial: Fix links after splitting steps

This commit is contained in:
Josef Angstenberger
2021-06-10 23:16:18 +02:00
committed by Brad King
parent d1c3e7e78a
commit 25dde20cc5
5 changed files with 16 additions and 14 deletions
@@ -11,11 +11,11 @@ requirements are:
- :command:`target_include_directories`
- :command:`target_link_libraries`
Let's refactor our code from `Adding a Library (Step 2)`_ to use the modern
CMake approach of usage requirements. We first state that anybody linking to
MathFunctions needs to include the current source directory, while
MathFunctions itself doesn't. So this can become an ``INTERFACE`` usage
requirement.
Let's refactor our code from :guide:`tutorial/Adding a Library` to use the
modern CMake approach of usage requirements. We first state that anybody
linking to MathFunctions needs to include the current source directory,
while MathFunctions itself doesn't. So this can become an ``INTERFACE``
usage requirement.
Remember ``INTERFACE`` means things that consumers require but the producer
doesn't. Add the following lines to the end of