diff options
author | Francois Chabot <francois.chabot.dev@gmail.com> | 2019-02-01 20:12:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 20:12:58 +0300 |
commit | 734af31c1354f4861f54b7f297f17db2190cda8b (patch) | |
tree | 46338867436cc9cebe401aa40156778c4f625e9a /CMakeLists.txt | |
parent | 2d96896fae1fcc81a931b06ed244c489ca0522f4 (diff) |
Allow the inclusion of an external fmtlib as as sub_directory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f0ddaeef..8da5f3a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ option(SPDLOG_BUILD_BENCH "Build benchmarks (Requires https://github.com/google/ option(SPDLOG_BUILD_TESTS "Build tests" ${SPDLOG_MASTER_PROJECT}) option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF) -if(SPDLOG_FMT_EXTERNAL) +if(SPDLOG_FMT_EXTERNAL AND NOT TARGET fmt::fmt) find_package(fmt REQUIRED CONFIG) endif() |