From 5e37a2c0e9a5a4c5496c4914e66db5cbf51a16f2 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Fri, 7 Jul 2023 01:59:14 +0200 Subject: [PATCH] Fix "ninja clean" --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2433ab69..49665d2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -650,8 +650,9 @@ list( ${CMAKE_CURRENT_BINARY_DIR}/thrift/dwarfs/gen-cpp2/metadata_visitation.h) add_custom_command( - OUTPUT thrift/lib/thrift + OUTPUT thrift/lib/thrift/_keep COMMAND ${CMAKE_COMMAND} -E make_directory thrift/lib/thrift + COMMAND ${CMAKE_COMMAND} -E touch thrift/lib/thrift/_keep WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) @@ -664,14 +665,15 @@ add_custom_command( --gen mstch_cpp2 frozen.thrift DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bin/thrift1 - ${CMAKE_CURRENT_BINARY_DIR}/thrift/lib/thrift + ${CMAKE_CURRENT_BINARY_DIR}/thrift/lib/thrift/_keep ${CMAKE_CURRENT_SOURCE_DIR}/fbthrift/thrift/lib/thrift/frozen.thrift WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/thrift/lib/thrift ) add_custom_command( - OUTPUT thrift/dwarfs + OUTPUT thrift/dwarfs/_keep COMMAND ${CMAKE_COMMAND} -E make_directory thrift/dwarfs + COMMAND ${CMAKE_COMMAND} -E touch thrift/dwarfs/_keep WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) @@ -684,7 +686,7 @@ add_custom_command( --gen mstch_cpp2:frozen2 metadata.thrift DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bin/thrift1 - ${CMAKE_CURRENT_BINARY_DIR}/thrift/dwarfs + ${CMAKE_CURRENT_BINARY_DIR}/thrift/dwarfs/_keep ${CMAKE_CURRENT_SOURCE_DIR}/thrift/metadata.thrift WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/thrift/dwarfs )