Commit 8af9e3fc authored by Torsten Rasmussen's avatar Torsten Rasmussen Committed by Anas Nashif
Browse files

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: default avatarTorsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
parent 7038c090
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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}