diff options
author | Trond H Emaus <trondhe@gmail.com> | 2020-03-28 02:03:59 +0300 |
---|---|---|
committer | Trond H Emaus <trondhe@gmail.com> | 2020-03-28 02:03:59 +0300 |
commit | 7054cf7a35c1816679d5fa20f3c9f063261ee422 (patch) | |
tree | 89b9f5849d1d24cd9f1c81de2098ecd6b12af4ef /cmake | |
parent | 2a7fc9e30edc03488c689811d1ef239d3ea567e5 (diff) |
replace MSVC_OPTIONS variable as list
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/utils.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/utils.cmake b/cmake/utils.cmake index 6b6bfa5f..bd6d3777 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -28,9 +28,9 @@ endfunction() # Turn on warnings on the given target
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
- set(MSVC_OPTIONS "${MSVC_OPTIONS} /WX")
+ list(APPEND MSVC_OPTIONS "/WX")
endif()
target_compile_options(${target_name} PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
|