Skip to content

Commit

Permalink
VCPKG adds /external:W0 which results in more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Aug 23, 2024
1 parent 4e8973e commit 283d260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/CompilerAndLinker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
list(APPEND COMPILER_SWITCHES /Zc:lambda)
endif()

if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29)
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29)
AND (NOT VCPKG_TOOLCHAIN))
list(APPEND COMPILER_SWITCHES /external:W4)
endif()

Expand Down

0 comments on commit 283d260

Please sign in to comment.