From 8af9e3fcf1869aa8b5b4a68a7524038e82f3e6ca Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Thu, 2 Sep 2021 22:49:55 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea473b688c1..fcea2d054eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}