This is an automated email from the ASF dual-hosted git repository.
acassis 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 d37309e8db0 cmake: nuttx_create_symlink: Remove warning for CMP0205
d37309e8db0 is described below
commit d37309e8db0868c16e0de59081fb878093b2238c
Author: Patrick José Pereira <[email protected]>
AuthorDate: Tue May 26 09:03:32 2026 -0300
cmake: nuttx_create_symlink: Remove warning for CMP0205
Signed-off-by: Patrick José Pereira <[email protected]>
---
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()