From 904f6c95ca858a9ee3c385a0c3b0e5b9f5589581 Mon Sep 17 00:00:00 2001 From: avalchev Date: Thu, 4 Aug 2016 13:25:36 +0300 Subject: [PATCH] FMT_USE_CPP11 option polutes build flags with '-std=c++11'. Enable by default FMT_USE_CPP11 only when MASTER_PROJECT is ON. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 353940f8..699ce26e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,9 @@ option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF) option(FMT_DOC "Generate the doc target." ${MASTER_PROJECT}) option(FMT_INSTALL "Generate the install target." ${MASTER_PROJECT}) option(FMT_TEST "Generate the test target." ${MASTER_PROJECT}) -option(FMT_USE_CPP11 "Enable the addition of C++11 compiler flags." ON) +if (MASTER_PROJECT) + option(FMT_USE_CPP11 "Enable the addition of C++11 compiler flags." ON) +endif() project(FMT)