From 735363404b7fe77b3335ad599a016ba800bc49b5 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:34:27 -0400 Subject: [PATCH] generate_binary_list: Fix recursive sub dirs --- src/tzdb/generate_binary_list_txt.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tzdb/generate_binary_list_txt.cmake b/src/tzdb/generate_binary_list_txt.cmake index 4edce75..13e96c9 100644 --- a/src/tzdb/generate_binary_list_txt.cmake +++ b/src/tzdb/generate_binary_list_txt.cmake @@ -40,7 +40,11 @@ function(get_files_nx TARG SUB_DIR) if (NOT DIR OR DIR STREQUAL "\n") continue() endif() - get_files_nx(${TARG}/${DIR} ${DIR}) + if (SUB_DIR) + get_files_nx(${TARG}/${DIR} ${SUB_DIR}/${DIR}) + else() + get_files_nx(${TARG}/${DIR} ${DIR}) + endif() endforeach() endfunction()