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:
parent
7038c0909d
commit
8af9e3fcf1
1 changed files with 0 additions and 11 deletions
|
@ -594,23 +594,12 @@ add_custom_command(
|
|||
|
||||
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}
|
||||
APPEND PROPERTY
|
||||
ADDITIONAL_CLEAN_FILES
|
||||
${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}
|
||||
DEPENDS
|
||||
${syscalls_json}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue