From 39892cfd8cc550ee7ec48d385ca679208d3f8949 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 23 Aug 2024 01:16:34 -0700 Subject: [PATCH] VCPKG adds /external:W0 which results in more warnings --- build/CompilerAndLinker.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/CompilerAndLinker.cmake b/build/CompilerAndLinker.cmake index 8950d5ca..1826feb8 100644 --- a/build/CompilerAndLinker.cmake +++ b/build/CompilerAndLinker.cmake @@ -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()