Fixed cmake

This commit is contained in:
gabime
2020-04-10 15:51:34 +03:00
parent 02802af97f
commit 6440733002
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ endfunction()
# Turn on warnings on the given target
function(SPDLOG_BUILD_WARNINGS target_name)
function(spdlog_enable_warnings target_name)
if(SPDLOG_BUILD_WARNINGS)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
list(APPEND MSVC_OPTIONS "/W3")