diff --git a/cmake/EnableCompilerWarnings.cmake b/cmake/EnableCompilerWarnings.cmake index bc0878c293f..f3a12002638 100755 --- a/cmake/EnableCompilerWarnings.cmake +++ b/cmake/EnableCompilerWarnings.cmake @@ -1,7 +1,7 @@ ##################################################################################### # The MIT License (MIT) # -# Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -106,6 +106,11 @@ else() -Wno-unsafe-buffer-usage # -Wno-c++2a-designator ) + if(WIN32 AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19") + list(APPEND CMAKE_COMPILER_WARNINGS + -Wno-missing-include-dirs + ) + endif() else() list(APPEND CMAKE_COMPILER_WARNINGS -Wno-missing-field-initializers