From 313671fc4c9a9d147fb4650a0c52d5d6286ba207 Mon Sep 17 00:00:00 2001 From: Holden Date: Tue, 14 Jan 2025 20:21:15 -0500 Subject: [PATCH] CMake: Set Policy for Sccache --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85832599599..3d22793042e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,9 @@ elseif(WIN32) string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") endif() set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded) + if(POLICY CMP0141) + cmake_policy(SET CMP0141 NEW) + endif() endif() endif()