From d37309e8db0868c16e0de59081fb878093b2238c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 26 May 2026 09:03:32 -0300 Subject: [PATCH] cmake: nuttx_create_symlink: Remove warning for CMP0205 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- cmake/nuttx_create_symlink.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/nuttx_create_symlink.cmake b/cmake/nuttx_create_symlink.cmake index 08191f1f1cf..4cbaa5c0daa 100644 --- a/cmake/nuttx_create_symlink.cmake +++ b/cmake/nuttx_create_symlink.cmake @@ -25,6 +25,12 @@ function(nuttx_create_symlink old new) "MSYS|CYGWIN|Windows") execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${old} ${new}) else() + # https://cmake.org/cmake/help/latest/policy/CMP0205.html + cmake_policy(PUSH) + if(POLICY CMP0205) + cmake_policy(SET CMP0205 NEW) + endif() file(CREATE_LINK ${old} ${new} COPY_ON_ERROR SYMBOLIC) + cmake_policy(POP) endif() endfunction()