From b19d136f9304755fc009f35e91c726bca31bbec8 Mon Sep 17 00:00:00 2001 From: Artur Wojcik Date: Tue, 25 Feb 2025 18:09:37 +0100 Subject: [PATCH] HIP SDK 6.3 for Windows bug workaround (#3823) --- cmake/EnableCompilerWarnings.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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