cmake: remove ADDITIONAL_MAKE_CLEAN_FILES for CMake <3.15

Zephyr now requires CMake 3.20 or newer.

Let's remove comment regarding ADDITIONAL_CLEAN_FILES only supported
with CMake 3.15 or newer.

Also remove the ADDITIONAL_MAKE_CLEAN_FILES which provided the same
functionality, but only for Makefiles when using CMake <3.15.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2021-09-02 22:49:55 +02:00 committed by Anas Nashif
commit 8af9e3fcf1

View file

@ -594,23 +594,12 @@ add_custom_command(
add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h}) add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h})
# This only works for CMake version >=3.15, but as the property is ignored on
# older CMake versions there is no reason to check for version.
set_property(TARGET ${SYSCALL_LIST_H_TARGET} set_property(TARGET ${SYSCALL_LIST_H_TARGET}
APPEND PROPERTY APPEND PROPERTY
ADDITIONAL_CLEAN_FILES ADDITIONAL_CLEAN_FILES
${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscalls ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscalls
) )
# Only works with make.
if(${CMAKE_VERSION} VERSION_LESS 3.15)
set_property(DIRECTORY
APPEND PROPERTY
ADDITIONAL_MAKE_CLEAN_FILES
${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscalls
)
endif()
add_custom_target(${PARSE_SYSCALLS_TARGET} add_custom_target(${PARSE_SYSCALLS_TARGET}
DEPENDS DEPENDS
${syscalls_json} ${syscalls_json}