From 43731538001f4feb2c47da7bc14ee23c32a88536 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 27 Oct 2018 12:59:51 -0700 Subject: [PATCH] Update usage.rst --- doc/usage.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/usage.rst b/doc/usage.rst index 4d39882c..e8894cfc 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -74,7 +74,12 @@ or to exclude it from ``make``, ``make all``, or ``cmake --build .``. -Settting up your target to use a header-only version of ``fmt`` is equaly easy:: +You can detect and use an installed version of {fmt} as follows:: + + find_package(fmt) + target_link_libraries( fmt::fmt) + +Setting up your target to use a header-only version of ``fmt`` is equaly easy:: target_link_libraries( PRIVATE fmt-header-only)