From 6a83ba3fc5ded85db1390a8bad71a830f2669246 Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Thu, 31 Oct 2024 11:32:10 -0400 Subject: [PATCH] Remove the `velox_list_subdirs` CMake function This is not used and in review it was suggested that we remove it. --- CMake/ResolveDependency.cmake | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/CMake/ResolveDependency.cmake b/CMake/ResolveDependency.cmake index 1b7fbe554a38..be4ae1f4c458 100644 --- a/CMake/ResolveDependency.cmake +++ b/CMake/ResolveDependency.cmake @@ -110,27 +110,6 @@ function(velox_set_with_default var_name envvar_name default) endif() endfunction() -# List subdirectories of ${dir} -function(velox_list_subdirs var dir) - if(NOT IS_DIRECTORY ${dir}) - message(FATAL_ERROR "${dir} is not a directory!") - endif() - - # finds files & dirs - file(GLOB children ${dir}/*) - set(dirs "") - - foreach(child ${children}) - if(IS_DIRECTORY ${child}) - list(APPEND dirs ${child}) - endif() - endforeach() - - set(${var} - ${dirs} - PARENT_SCOPE) -endfunction() - # Set custom source url with a optional sha256 checksum. macro(velox_resolve_dependency_url dependency_name) # Prepend prefix for default checksum.