summaryrefslogtreecommitdiff
path: root/Help/guide/tutorial
diff options
context:
space:
mode:
authorJoshua Perrett <jperrett256@gmail.com>2022-11-19 19:43:14 +0000
committerJoshua Perrett <jperrett256@gmail.com>2023-01-18 21:43:49 +0000
commitf04c548877d9844ee198022e3fce253b0916ca09 (patch)
tree2c2aa3137945c8aa477c01d12394b65952397e55 /Help/guide/tutorial
parent566e12c9762a6061021c1f99a01c7660c34142c2 (diff)
downloadcmake-f04c548877d9844ee198022e3fce253b0916ca09.tar.gz
Tutorial: Fix exercise in Step 10 to match solution provided in Step 11
The solution in Step 11 sets POSITION_INDEPENDENT_CODE to `${BUILD_SHARED_LIBS}`, rather than simply to "True" in all cases.
Diffstat (limited to 'Help/guide/tutorial')
-rw-r--r--Help/guide/tutorial/Selecting Static or Shared Libraries.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/guide/tutorial/Selecting Static or Shared Libraries.rst b/Help/guide/tutorial/Selecting Static or Shared Libraries.rst
index 1c49c23a5e..7befe1d3fd 100644
--- a/Help/guide/tutorial/Selecting Static or Shared Libraries.rst
+++ b/Help/guide/tutorial/Selecting Static or Shared Libraries.rst
@@ -65,7 +65,7 @@ At this point, if you build everything, you may notice that linking fails
as we are combining a static library without position independent code with a
library that has position independent code. The solution to this is to
explicitly set the :prop_tgt:`POSITION_INDEPENDENT_CODE` target property of
-SqrtLibrary to be ``True`` no matter the build type.
+SqrtLibrary to be ``True`` when building shared libraries.
.. literalinclude:: Step11/MathFunctions/CMakeLists.txt
:caption: MathFunctions/CMakeLists.txt