🔨 cleanup

This commit is contained in:
Niels Lohmann 2021-10-20 20:35:07 +02:00
parent 7e87863a6d
commit 4c10ccafd9
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
5 changed files with 19 additions and 19 deletions

View File

@ -53,4 +53,4 @@ else()
execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version OUTPUT_VARIABLE CXX_VERSION_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
string(REGEX REPLACE "[ ]*\n" "; " CXX_VERSION_RESULT "${CXX_VERSION_RESULT}")
message(STATUS "Compiler: ${CXX_VERSION_RESULT}, ${CMAKE_CXX_COMPILE_FEATURES}")
message(STATUS "Compiler: ${CXX_VERSION_RESULT}")

View File

@ -51,11 +51,11 @@
#define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
#endif
// std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
#undef JSON_HAS_FILESYSTEM
#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
#endif
//// std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
//#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
// #undef JSON_HAS_FILESYSTEM
// #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
//#endif
#endif
#endif

View File

@ -2339,11 +2339,11 @@ using is_detected_convertible =
#define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
#endif
// std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
#undef JSON_HAS_FILESYSTEM
#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
#endif
//// std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
//#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
// #undef JSON_HAS_FILESYSTEM
// #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
//#endif
#endif
#endif

View File

@ -59,9 +59,9 @@ foreach(feature ${CMAKE_CXX_COMPILE_FEATURES})
endif()
endforeach()
# Clang only supports C++17 starting from Clang 5.0
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
unset(compiler_supports_cpp_17)
endif()
#if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
# unset(compiler_supports_cpp_17)
#endif()
file(GLOB files src/unit-*.cpp)

View File

@ -62,11 +62,11 @@ using ordered_json = nlohmann::ordered_json;
#define JSON_HAS_EXPERIMENTAL_FILESYSTEM 1
#endif
// std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
#undef JSON_HAS_FILESYSTEM
#undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
#endif
//// std::filesystem does not work on MinGW GCC 8: https://sourceforge.net/p/mingw-w64/bugs/737/
//#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ == 8
// #undef JSON_HAS_FILESYSTEM
// #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM
//#endif
#endif
#endif