Fix c++0x detection

This commit is contained in:
Victor Zverovich 2018-02-11 07:32:22 -08:00
parent 1849735f12
commit 0b508fd29d

View File

@ -46,7 +46,7 @@ if (FMT_USE_CPP14)
if (HAVE_STD_CPP11_FLAG) if (HAVE_STD_CPP11_FLAG)
set(CPP14_FLAG -std=c++11) set(CPP14_FLAG -std=c++11)
else () else ()
check_cxx_compiler_flag(-std=c++0x HAVE_STD_CPP11_FLAG) check_cxx_compiler_flag(-std=c++0x HAVE_STD_CPP0X_FLAG)
if (HAVE_STD_CPP0X_FLAG) if (HAVE_STD_CPP0X_FLAG)
set(CPP14_FLAG -std=c++0x) set(CPP14_FLAG -std=c++0x)
endif () endif ()