From 0b508fd29d22b2535b9f641a49d886c9b2d85532 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 11 Feb 2018 07:32:22 -0800 Subject: [PATCH] Fix c++0x detection --- support/cmake/cxx14.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/cmake/cxx14.cmake b/support/cmake/cxx14.cmake index d725917a..eb2c77e9 100644 --- a/support/cmake/cxx14.cmake +++ b/support/cmake/cxx14.cmake @@ -46,7 +46,7 @@ if (FMT_USE_CPP14) if (HAVE_STD_CPP11_FLAG) set(CPP14_FLAG -std=c++11) 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) set(CPP14_FLAG -std=c++0x) endif ()