add a cmake flag to disable warnings

This commit is contained in:
Arne Morten Kvarving
2020-06-09 15:10:44 +02:00
parent b73f4aa5dc
commit 64cbbdde65

View File

@@ -62,7 +62,10 @@ include (UseOptimization)
# turn on all warnings; this must be done before adding any
# dependencies, in case they alter the list of warnings
include (UseWarnings)
option(OPM_DISABLE_WARNINGS "Disable warning flags" OFF)
if(NOT OPM_DISABLE_WARNINGS)
include (UseWarnings)
endif()
# parallel programming
include (UseOpenMP)