This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new d77ef098c6 build: set CMake policy to allow FetchContent_Populate
d77ef098c6 is described below

commit d77ef098c6498a237c9b39bb5bf625e93c4a59b1
Author: Daniel Jasinski <[email protected]>
AuthorDate: Sat Aug 10 12:28:54 2024 -0400

    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 <[email protected]>
---
 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)

Reply via email to