mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
replace MSVC_OPTIONS variable as list
This commit is contained in:
parent
2a7fc9e30e
commit
7054cf7a35
@ -28,9 +28,9 @@ endfunction()
|
|||||||
|
|
||||||
# Turn on warnings on the given target
|
# Turn on warnings on the given target
|
||||||
function(spdlog_enable_warnings target_name)
|
function(spdlog_enable_warnings target_name)
|
||||||
set(MSVC_OPTIONS "/W3")
|
list(APPEND MSVC_OPTIONS "/W3")
|
||||||
if(MSVC_VERSION GREATER 1900) #Allow non fatal security wanrnings for msvc 2015
|
if(MSVC_VERSION GREATER 1900) #Allow non fatal security wanrnings for msvc 2015
|
||||||
set(MSVC_OPTIONS "${MSVC_OPTIONS} /WX")
|
list(APPEND MSVC_OPTIONS "/WX")
|
||||||
endif()
|
endif()
|
||||||
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>>:
|
||||||
|
Loading…
Reference in New Issue
Block a user