Commit 54c3ed92 authored by Victor Zverovich's avatar Victor Zverovich

Add -std=c++11 flag only if supported by compiler.

parent 3937644a
......@@ -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)
......
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