mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-03 05:29:16 +00:00
Add -std=c++11 flag only if supported by compiler.
This commit is contained in:
parent
3937644a8d
commit
54c3ed92b6
@ -12,7 +12,9 @@ project(FORMAT)
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
check_cxx_compiler_flag(-std=c++11 HAVE_STD_CPP11_FLAG)
|
||||
add_definitions(-std=c++11)
|
||||
if (HAVE_STD_CPP11_FLAG)
|
||||
add_definitions(-std=c++11)
|
||||
endif ()
|
||||
|
||||
add_library(format format.cc)
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
Loading…
Reference in New Issue
Block a user