Things that the compiler doesn't like is a source of bugs, so we strive to compile with a full level of warning reporting.
8 lines
219 B
CMake
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)
|