disabling external headers for analyzer

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-07 18:36:40 -07:00
parent f30ac72040
commit 9e0ff8e55d
2 changed files with 3 additions and 0 deletions
@@ -136,6 +136,7 @@ endif()
ly_set(LY_CXX_SYSTEM_INCLUDE_CONFIGURATION_FLAG
/experimental:external # Turns on "external" headers feature for MSVC compilers
/external:W0 # Set warning level in external headers to 0. This is used to suppress warnings 3rdParty libraries which uses the "system_includes" option in their json configuration
/analyze:external- # disable analysis on external headers
)
if(NOT CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
ly_set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX /external:I)
@@ -22,6 +22,8 @@ SPDX-License-Identifier: Apache-2.0 OR MIT
handles external headers in MSVC, we can remove that code and this
-->
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
<!-- We also disable the analysis of external headers. -->
<DisableAnalyzeExternal>true</DisableAnalyzeExternal>
</ClCompile>
</ItemDefinitionGroup>
<!-- Continue scanning upwards to pick up all Directory.Build.props -->