Skip to content

Commit ddb9e3f

Browse files
tejlmandkartben
authored andcommitted
cmake: use zephyr_file_copy(...) instead of file(COPY_FILE ...)
`file(COPY_FILE ...)` is from CMake 3.21. Zephyr still supports CMake 3.20, so use zephyr_file_copy(...) instead of `file(COPY_FILE ...)`. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 78b8950 commit ddb9e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/extensions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4720,7 +4720,7 @@ function(zephyr_dt_import)
47204720
COMMAND_ERROR_IS_FATAL ANY
47214721
)
47224722

4723-
file(COPY_FILE ${gen_dts_cmake_temp} ${gen_dts_cmake_output} ONLY_IF_DIFFERENT)
4723+
zephyr_file_copy(${gen_dts_cmake_temp} ${gen_dts_cmake_output} ONLY_IF_DIFFERENT)
47244724
endif()
47254725
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${gen_dts_cmake_script})
47264726

0 commit comments

Comments
 (0)