From 2c3130b3948be5aadbe427e7674bfce422f588d4 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 18 Feb 2024 22:28:05 -0800 Subject: [PATCH] Fix warnings on newer CMake about FetchContent --- Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt b/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt index 6454b6cb17..86fdca3090 100644 --- a/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt +++ b/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt @@ -1,5 +1,9 @@ include(FetchContent) +if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() + FetchContent_Declare( metalcpp URL_HASH_SHA256 0afd87ca851465191ae4e3980aa036c7e9e02fe32e7c760ac1a74244aae6023b