From f04c548877d9844ee198022e3fce253b0916ca09 Mon Sep 17 00:00:00 2001 From: Joshua Perrett Date: Sat, 19 Nov 2022 19:43:14 +0000 Subject: 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. --- Help/guide/tutorial/Selecting Static or Shared Libraries.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Help/guide/tutorial/Selecting Static or Shared Libraries.rst b/Help/guide/tutorial/Selecting Static or Shared Libraries.rst index 1c49c23..7befe1d 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 -- cgit v0.12