build and test in c++11 and in c++98 mode

This commit is contained in:
Mario Werner
2016-02-07 18:23:02 +01:00
parent 8c8877df5a
commit 6a79a3279b
6 changed files with 69 additions and 19 deletions
+3 -1
View File
@@ -29,8 +29,10 @@ else ()
endif ()
endif ()
if (FMT_USE_CPP11)
set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})
endif ()
set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})
# Check if variadic templates are working and not affected by GCC bug 39653:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39653
check_cxx_source_compiles("