diff options
author | Joshua Perrett <jperrett256@gmail.com> | 2022-11-19 19:43:14 (GMT) |
---|---|---|
committer | Joshua Perrett <jperrett256@gmail.com> | 2023-01-18 21:43:49 (GMT) |
commit | f04c548877d9844ee198022e3fce253b0916ca09 (patch) | |
tree | 2c2aa3137945c8aa477c01d12394b65952397e55 /Help/guide | |
parent | 566e12c9762a6061021c1f99a01c7660c34142c2 (diff) | |
download | CMake-f04c548877d9844ee198022e3fce253b0916ca09.zip CMake-f04c548877d9844ee198022e3fce253b0916ca09.tar.gz CMake-f04c548877d9844ee198022e3fce253b0916ca09.tar.bz2 |
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')
-rw-r--r-- | Help/guide/tutorial/Selecting Static or Shared Libraries.rst | 2 |
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 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 |