Files
opm-core/cmake/Modules/UseWarnings.cmake
Roland Kaufmann f1111c73bb Turn on all warnings when compiling
Things that the compiler doesn't like is a source of bugs, so we strive
to compile with a full level of warning reporting.
2013-02-11 22:36:49 +01:00

8 lines
219 B
CMake

# - Turn on warnings when compiling
include (AddOptions)
if (CMAKE_COMPILER_IS_GNUCXX)
message (STATUS "All warnings enabled: -Wall")
add_options (ALL_LANGUAGES ALL_BUILDS "-Wall")
endif (CMAKE_COMPILER_IS_GNUCXX)