mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-02 21:19:26 +00:00
Check for -std=c++0x flag if -std=c++11 is not available.
This commit is contained in:
parent
3fe942c284
commit
3c3c846908
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user