mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
Tutorial: Fix links after splitting steps
This commit is contained in:
committed by
Brad King
parent
d1c3e7e78a
commit
25dde20cc5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user