Fix option name to match name in use in conditional.

Also add a useful doc string.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-04-22 09:50:29 +02:00
parent f9249b1d5d
commit 773cbc96d2

View File

@ -13,7 +13,7 @@ if (CXX_COMPAT_GCC)
endif (_warn_flag)
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)
file(WRITE ${CMAKE_BINARY_DIR}/disable_warning_pragmas.h "
#pragma GCC diagnostic push