From c2b47430fb210c8822177407b9e4b82d4ef7455d Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 1 Apr 2020 00:23:04 +0300 Subject: [PATCH] Enabled warning on examples only if built as part of spdlog --- CMakeLists.txt | 6 ++++- logos/jetbrains-variant-4.svg | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 logos/jetbrains-variant-4.svg diff --git a/CMakeLists.txt b/CMakeLists.txt index 8556fb70..802c8228 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,8 +253,12 @@ endif() # Build binaries #--------------------------------------------------------------------------------------- if(SPDLOG_BUILD_EXAMPLE OR SPDLOG_BUILD_EXAMPLE_HO) - message(STATUS "Generating examples") + message(STATUS "Generating example(s)") add_subdirectory(example) + spdlog_enable_warnings(example) + if(SPDLOG_BUILD_EXAMPLE_HO) + spdlog_enable_warnings(example_header_only) + endif() endif() if(SPDLOG_BUILD_TESTS OR SPDLOG_BUILD_TESTS_HO) diff --git a/logos/jetbrains-variant-4.svg b/logos/jetbrains-variant-4.svg new file mode 100644 index 00000000..e02b5595 --- /dev/null +++ b/logos/jetbrains-variant-4.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +