Skip to content

Commit

Permalink
Fix CMakeList for older versions of CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Dec 8, 2019
1 parent 1586c4b commit 3a258ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function(spdlog_enable_warnings target_name)
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
-Wall -Wextra -Wconversion -pedantic -Wfatal-errors>
$<$<CXX_COMPILER_ID:MSVC>:/W4>)
if(MSVC_VERSION GREATER_EQUAL 1910) #Allow non fatal security wanrnings for msvc 2015
if(MSVC_VERSION GREATER 1900) #Allow non fatal security wanrnings for msvc 2015
target_compile_options(${target_name} PRIVATE /WX)
endif()
endfunction()
Expand Down

0 comments on commit 3a258ee

Please sign in to comment.