add a cmake flag to disable warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user