Browse Source

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.
Joshua Perrett 2 years ago
parent
commit
f04c548877
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Help/guide/tutorial/Selecting Static or Shared Libraries.rst

+ 1 - 1
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