From 975c168c503d031bc719f6c424bcd30247ca229e Mon Sep 17 00:00:00 2001 From: Adnan Yunus Date: Fri, 16 Oct 2020 18:28:22 -0700 Subject: [PATCH] added position independent documentation --- doc/usage.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/usage.rst b/doc/usage.rst index b2eeaa98..91d3c089 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -52,6 +52,13 @@ 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. python extension) set the ``CMAKE_POSITION_INDEPENDENT_CODE`` CMake variable to +``TRUE``:: + + cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE ... + + Installing the Library ======================