Skip to content

Commit

Permalink
Remove the velox_list_subdirs CMake function
Browse files Browse the repository at this point in the history
This is not used and in review it was suggested that we remove it.
  • Loading branch information
cryos committed Nov 7, 2024
1 parent fbe1535 commit 6a83ba3
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions CMake/ResolveDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a83ba3

Please sign in to comment.