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)