fix: 配置将警告视为错误
This commit is contained in:
parent
06dcb914fd
commit
94ecda1252
|
|
@ -57,4 +57,10 @@ if (MSVC)
|
|||
add_compile_definitions(_UNICODE UNICODE)
|
||||
endif()
|
||||
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE
|
||||
$<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra -Werror>
|
||||
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Werror>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>
|
||||
)
|
||||
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS_ON)
|
||||
|
|
|
|||
Loading…
Reference in New Issue