ecos_clean.cmake 492 B

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