summaryrefslogtreecommitdiff
path: root/externals/nx_tzdb/ListFilesInDirectory.cmake
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-06-13 13:28:45 -0700
committerGitHub <noreply@github.com>2023-06-13 13:28:45 -0700
commit698a3eda508ca0d3220452854b3ec977d7be5ea2 (patch)
treefc71df2feda7bfed6f686e3f7aa0fa8629aebc5d /externals/nx_tzdb/ListFilesInDirectory.cmake
parent190eed819959987054a06c756e2be9a3a5eac37f (diff)
parent8f9afbcd91444c5e0653da458e44de37388c6d79 (diff)
Merge pull request #10603 from lat9nq/tz-more-complete
core,common: Implement missing time zone data/computations
Diffstat (limited to 'externals/nx_tzdb/ListFilesInDirectory.cmake')
-rw-r--r--externals/nx_tzdb/ListFilesInDirectory.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/externals/nx_tzdb/ListFilesInDirectory.cmake b/externals/nx_tzdb/ListFilesInDirectory.cmake
new file mode 100644
index 000000000..35a9e726a
--- /dev/null
+++ b/externals/nx_tzdb/ListFilesInDirectory.cmake
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# CMake does not have a way to list the files in a specific directory,
+# so we need this script to do that for us in a platform-agnostic fashion
+
+file(GLOB FILE_LIST LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "*")
+execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${FILE_LIST};")