From d77ef098c6498a237c9b39bb5bf625e93c4a59b1 Mon Sep 17 00:00:00 2001 From: Daniel Jasinski Date: Sat, 10 Aug 2024 12:28:54 -0400 Subject: [PATCH] build: set CMake policy to allow FetchContent_Populate FetchContent_Populate is depracated starting from CMake 3.30. Setting this policy to OLD allows clean CMake builds for configurations that rely on CMake fetch content feature. Signed-off-by: Daniel Jasinski --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cb7714a2e..b2effa4c91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,11 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") cmake_policy(SET CMP0135 NEW) endif() +if(POLICY CMP0169) + # allow to call FetchContent_Populate directly + cmake_policy(SET CMP0169 OLD) +endif() + # Basic CMake configuration ################################################## set(CMAKE_CXX_EXTENSIONS OFF)