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:
nealhow 2020-10-02 07:33:45 -04:00 committed by GitHub
commit 6542b72a71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>)