mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
CMake: - Allow non fatal security wanrnings for msvc 2015 and below
This commit is contained in:
@@ -29,7 +29,10 @@ function(spdlog_enable_warnings target_name)
|
|||||||
target_compile_options(${target_name} PRIVATE
|
target_compile_options(${target_name} PRIVATE
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
|
||||||
-Wall -Wextra -Wconversion -pedantic -Wfatal-errors>
|
-Wall -Wextra -Wconversion -pedantic -Wfatal-errors>
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>)
|
$<$<CXX_COMPILER_ID:MSVC>:/W4>)
|
||||||
|
if(MSVC_VERSION GREATER_EQUAL 1910) #Allow non fatal security wanrnings for msvc 2015
|
||||||
|
target_compile_options(${target_name} PRIVATE /WX)
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user