From 3eeced78b5f299b9274551c663539761004ef1d4 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 10 Jul 2021 15:15:39 +0300 Subject: [PATCH] Removed some cmake wdev warnings --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df50957b..d7fc940f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,10 +99,15 @@ endif () if (WIN32) option(SPDLOG_WCHAR_SUPPORT "Support wchar api" OFF) option(SPDLOG_WCHAR_FILENAMES "Support wchar filenames" OFF) +else () + SET(SPDLOG_WCHAR_SUPPORT OFF CACHE BOOL "non supported option" FORCE) + SET(SPDLOG_WCHAR_FILENAMES OFF CACHE BOOL "non supported option" FORCE) endif () + if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") - option(SPDLOG_CLOCK_COARSE - "Use the much faster (but much less accurate) CLOCK_REALTIME_COARSE instead of the regular clock," OFF) + option(SPDLOG_CLOCK_COARSE "Use CLOCK_REALTIME_COARSE instead of the regular clock," OFF) +else () + SET(SPDLOG_CLOCK_COARSE OFF CACHE BOOL "non supported option" FORCE) endif () option(SPDLOG_PREVENT_CHILD_FD "Prevent from child processes to inherit log file descriptors" OFF)