diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f6b0788..260f8ae2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,12 @@ message(STATUS "Build spdlog: ${SPDLOG_VERSION}") #--------------------------------------------------------------------------------------- set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_CXX_EXTENSIONS OFF) + +if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN") + set(CMAKE_CXX_EXTENSIONS ON) +endif() + #--------------------------------------------------------------------------------------- # Set SPDLOG_MASTER_PROJECT to ON if we are building spdlog diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h index 66a82d87..7d94f2e3 100644 --- a/include/spdlog/fmt/fmt.h +++ b/include/spdlog/fmt/fmt.h @@ -25,8 +25,8 @@ #ifndef FMT_USE_WINDOWS_H #define FMT_USE_WINDOWS_H 0 #endif -#include "bundled/core.h" -#include "bundled/format.h" +#include +#include #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib #include #include diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h index 9902898f..f82eb679 100644 --- a/include/spdlog/fmt/ostr.h +++ b/include/spdlog/fmt/ostr.h @@ -7,12 +7,14 @@ // // include bundled or external copy of fmtlib's ostream support // + #if !defined(SPDLOG_FMT_EXTERNAL) +#ifdef SPDLOG_HEADER_ONLY #ifndef FMT_HEADER_ONLY #define FMT_HEADER_ONLY #endif -#include "bundled/ostream.h" -#include "fmt.h" +#endif +#include #else #include #endif diff --git a/out/build/x64-Debug/.cmake/api/v1/reply/index-2019-12-10T00-41-29-0476.json b/out/build/x64-Debug/.cmake/api/v1/reply/index-2019-12-10T00-41-29-0476.json new file mode 100644 index 00000000..df52a6d8 --- /dev/null +++ b/out/build/x64-Debug/.cmake/api/v1/reply/index-2019-12-10T00-41-29-0476.json @@ -0,0 +1,109 @@ +{ + "cmake" : + { + "generator" : + { + "name" : "Ninja" + }, + "paths" : + { + "cmake" : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe", + "cpack" : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cpack.exe", + "ctest" : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/ctest.exe", + "root" : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.14" + }, + "version" : + { + "isDirty" : false, + "major" : 3, + "minor" : 14, + "patch" : 19060802, + "string" : "3.14.19060802-MSVC_2", + "suffix" : "" + } + }, + "objects" : + [ + { + "jsonFile" : "codemodel-v2-8659ce1306b63f468359.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cache-v2-d9117564e4566f11a654.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-5db72eed5d94afad5157.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ], + "reply" : + { + "client-MicrosoftVS" : + { + "query.json" : + { + "requests" : + [ + { + "kind" : "cache", + "version" : 2 + }, + { + "kind" : "cmakeFiles", + "version" : 1 + }, + { + "kind" : "codemodel", + "version" : 2 + } + ], + "responses" : + [ + { + "jsonFile" : "cache-v2-d9117564e4566f11a654.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-5db72eed5d94afad5157.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + { + "jsonFile" : "codemodel-v2-8659ce1306b63f468359.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 0 + } + } + ] + } + } + } +}