Fix MSVC warnings (#104)
/WX Treats all compiler warnings as errors. It should be disabled to prevent compilation issues with CMake on Windows. /W4 displays level 1, level 2, and level 3 warnings, and all level 4 (informational) warnings that aren't off by default. /W3 is the default setting in the IDE and should be enforced to prevent issues with CMake.
This commit is contained in:
parent
b155d6abcc
commit
6542b72a71
1 changed files with 1 additions and 1 deletions
|
|
@ -117,4 +117,4 @@ target_compile_options(cppast PRIVATE
|
|||
$<$<CXX_COMPILER_ID:GNU>: -Wno-noexcept-type>
|
||||
# MSVC warnings
|
||||
$<$<CXX_COMPILER_ID:MSVC>:
|
||||
/WX /W4>)
|
||||
/W3>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue