From 101f20f2bbf3dd5f6438565cd9f709a231317f77 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:53:07 -0700 Subject: [PATCH] Disable treating warnings as errors when the SDK is being consumed via FolderList (#6066) Co-authored-by: Anton Kolesnyk --- cmake-modules/FolderList.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake-modules/FolderList.cmake b/cmake-modules/FolderList.cmake index 5af29226b..db7b4b2e9 100644 --- a/cmake-modules/FolderList.cmake +++ b/cmake-modules/FolderList.cmake @@ -66,6 +66,8 @@ macro(SetCompileOptions project) message ("setting up compile options for ${project}") # Compile Options SetGlobalOptions() + # When the SDK is being consumed via FolderList, an consumption mechanism alternative to vcpkg, do disable treating warnings as errors. + SET(WARNINGS_AS_ERRORS OFF) endmacro() macro(DownloadDepVersion DEP_FOLDER DEP_NAME DEP_VERSION)