Fix option name to match name in use in conditional.
Also add a useful doc string.
This commit is contained in:
parent
f9249b1d5d
commit
773cbc96d2
@ -13,7 +13,7 @@ if (CXX_COMPAT_GCC)
|
|||||||
endif (_warn_flag)
|
endif (_warn_flag)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
option(SILENCE_DUNE_WARNINGS "Disable warnings from DUNE?" OFF)
|
option(SILENCE_EXTERNAL_WARNINGS "Disable some warnings from external packages (requires GCC 4.6 or newer)" OFF)
|
||||||
if(SILENCE_EXTERNAL_WARNINGS AND CXX_COMPAT_GCC)
|
if(SILENCE_EXTERNAL_WARNINGS AND CXX_COMPAT_GCC)
|
||||||
file(WRITE ${CMAKE_BINARY_DIR}/disable_warning_pragmas.h "
|
file(WRITE ${CMAKE_BINARY_DIR}/disable_warning_pragmas.h "
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
|
Loading…
Reference in New Issue
Block a user