Commit 3c3c8469 authored by Victor Zverovich's avatar Victor Zverovich

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

parent 3fe942c2
...@@ -12,6 +12,9 @@ project(FORMAT) ...@@ -12,6 +12,9 @@ project(FORMAT)
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-std=c++11 HAVE_STD_CPP11_FLAG) 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} set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
"${CMAKE_CURRENT_SOURCE_DIR}/cmake") "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment