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:
parent
9dbb60c4c8
commit
904f6c95ca
@ -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_DOC "Generate the doc target." ${MASTER_PROJECT})
|
||||||
option(FMT_INSTALL "Generate the install target." ${MASTER_PROJECT})
|
option(FMT_INSTALL "Generate the install target." ${MASTER_PROJECT})
|
||||||
option(FMT_TEST "Generate the test 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)
|
project(FMT)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user