We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7647b6b commit adb4880Copy full SHA for adb4880
cmake/CMakeCompiler.cmake
@@ -27,6 +27,9 @@ macro(setup_default_compiler_flags _project_name)
27
endif()
28
29
target_compile_options(${_project_name} PRIVATE -Wall -Wextra) # Enable all warnings
30
+ target_compile_options(${_project_name} PRIVATE -Wshadow) # Enable shadowing warnings
31
target_compile_options(${_project_name} PRIVATE -Werror) # Treat warnings as errors
32
+
33
+ target_compile_options(${_project_name} PRIVATE -g) # Enable debug symbols
34
35
endmacro()
0 commit comments