Commit 1ecd5d22 authored by Jakub Bureš's avatar Jakub Bureš
Browse files

Do not treat warnings as errors in MSVC

parent 74a3f04a
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -6,9 +6,9 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
if(MSVC)
add_compile_options(/W4 /WX)
add_compile_options(/W4)
else()
add_compile_options(-Wall -Wextra -Wpedantic)
add_compile_options(-Wall -Wextra -Wpedantic -Werr)
endif()
add_executable(HelloWorld "HelloWorld/hello.cpp")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment