Check for -std=c++0x flag if -std=c++11 is not available.

This commit is contained in:
Victor Zverovich 2014-04-29 07:12:06 -07:00
parent 3fe942c284
commit 3c3c846908

View File

@ -12,6 +12,9 @@ project(FORMAT)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-std=c++11 HAVE_STD_CPP11_FLAG)
if (NOT HAVE_STD_CPP11_FLAG)
check_cxx_compiler_flag(-std=c++0x HAVE_STD_CPP11_FLAG)
endif ()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
"${CMAKE_CURRENT_SOURCE_DIR}/cmake")