From 17fba753c45b75848f0281c64be89a908275e7f8 Mon Sep 17 00:00:00 2001 From: Adnan Date: Mon, 19 Oct 2020 14:20:54 -0700 Subject: [PATCH] added position independent documentation (#1939) * added position independent documentation * suggested fixes to usage * linebreaks Co-authored-by: Adnan Yunus --- doc/usage.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/usage.rst b/doc/usage.rst index b2eeaa981ec9..435afd532fe0 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -52,6 +52,14 @@ To build a `shared library`__ set the ``BUILD_SHARED_LIBS`` CMake variable to __ http://en.wikipedia.org/wiki/Library_%28computing%29#Shared_libraries + +To build a `static library` with position independent code (required if the main +consumer of the fmt library is a shared library i.e. a Python extension) set the +``CMAKE_POSITION_INDEPENDENT_CODE`` CMake variable to ``TRUE``:: + + cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE ... + + Installing the Library ======================