| 1234567891011121314151617181920212223 |
- function(enable_strict_warnings target)
- if (MSVC)
- target_compile_options(${${${target}}} PRIVATE
- /W4
- /WX
- /permissive-
- /sdl
- )
- else()
- target_compile_options(${${${target}}} PRIVATE
- -Wall
- -Wextra
- -Wpedantic
- -Werror
- -Wshadow
- -Wconversion
- -Wsign-conversion
- -Wnull-dereference
- -Wdouble-promotion
- -Wformat=2
- )
- endif()
- endfunction()
|