Add <format> test

This commit is contained in:
Victor Zverovich
2019-04-13 07:30:55 -07:00
parent 8bc0adb9ba
commit 41fbaeb3b1
5 changed files with 194 additions and 59 deletions
+10
View File
@@ -68,4 +68,14 @@ if (NOT SUPPORTS_USER_DEFINED_LITERALS)
set (SUPPORTS_USER_DEFINED_LITERALS OFF)
endif ()
# Check if <variant> is available
set(CMAKE_REQUIRED_FLAGS -std=c++1z)
check_cxx_source_compiles("
#include <variant>
int main() {}"
FMT_HAS_VARIANT)
if (NOT FMT_HAS_VARIANT)
set (FMT_HAS_VARIANT OFF)
endif ()
set(CMAKE_REQUIRED_FLAGS )