mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Enable C++11 if possible.
This commit is contained in:
parent
8e37936c77
commit
3937644a8d
@ -10,6 +10,10 @@ endif ()
|
||||
|
||||
project(FORMAT)
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
check_cxx_compiler_flag(-std=c++11 HAVE_STD_CPP11_FLAG)
|
||||
add_definitions(-std=c++11)
|
||||
|
||||
add_library(format format.cc)
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user