1# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2# file Copyright.txt or https://cmake.org/licensing for details.
3
4
5file(GLOB _files ${ECOS_DIR}/*)
6
7# remove all directories, which consist of lower-case letters only
8# this skips e.g. CVS/ and .subversion/
9foreach(_entry ${_files})
10  if(IS_DIRECTORY ${_entry})
11    get_filename_component(dir ${_entry} NAME)
12    if(${dir} MATCHES "^[a-z]+$")
13      file(REMOVE_RECURSE ${_entry})
14    endif()
15  endif()
16endforeach()
17