disabling external headers for analyzer
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user