FMT_USE_CPP11 option polutes build flags with '-std=c++11'. Enable by default FMT_USE_CPP11 only when MASTER_PROJECT is ON.

This commit is contained in:
avalchev 2016-08-04 13:25:36 +03:00
parent 9dbb60c4c8
commit 904f6c95ca

View File

@ -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)