2 #=============================================================================
3 # Copyright 2007-2009 Kitware, Inc.
5 # Distributed under the OSI-approved BSD License (the "License");
6 # see accompanying file Copyright.txt for details.
8 # This software is distributed WITHOUT ANY WARRANTY; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # See the License for more information.
11 #=============================================================================
12 # (To distribute this file outside of CMake, substitute the full
13 # License text for the above reference.)
15 file(GLOB _files ${ECOS_DIR}/*)
17 # remove all directories, which consist of lower-case letters only
18 # this skips e.g. CVS/ and .subversion/
19 foreach(_entry ${_files})
20 if(IS_DIRECTORY ${_entry})
21 get_filename_component(dir ${_entry} NAME)
22 if(${dir} MATCHES "^[a-z]+$")
23 file(REMOVE_RECURSE ${_entry})