From 8ed603145722d1266b3a30a1c0b2d71f08722c39 Mon Sep 17 00:00:00 2001 From: vitaut Date: Tue, 17 Mar 2015 07:56:55 -0700 Subject: [PATCH] Add a comment describing the use of -std=c++11 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 989d1a53..849ba65b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,6 +75,11 @@ if (CMAKE_COMPILER_IS_GNUCXX) set_target_properties(format PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wshadow -pedantic") endif () + +# If FMT_EXTRA_TESTS is TRUE, then test compilation with both -std=c++11 +# and the default flags. Otherwise use only the default flags. +# The library is distributed in the source form and users have full control +# over compile options, so the options used here only matter for testing. if (CPP11_FLAG AND FMT_EXTRA_TESTS) set_target_properties(format PROPERTIES COMPILE_FLAGS ${CPP11_FLAG}) # Test compilation with default flags.