lean2/src/cmake/Modules/CleanOlean.cmake
Leonardo de Moura 9a85a95893 fix(cmake/Modules/CleanOlean.cmake): problem with 'clean-olean'
For some reason it was not working anymore on OSX
2015-07-20 23:21:51 -07:00

25 lines
593 B
CMake

FILE(GLOB_RECURSE OLEAN_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.olean)
FILE(GLOB_RECURSE D_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.d)
FILE(GLOB_RECURSE CLEAN_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.clean)
FILE(GLOB_RECURSE ILEAN_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.ilean)
FILE(GLOB_RECURSE TAGS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/TAGS)
IF(OLEAN_FILES)
FILE(REMOVE ${OLEAN_FILES})
ENDIF()
IF(D_FILES)
FILE(REMOVE ${D_FILES})
ENDIF()
IF(CLEAN_FILES)
FILE(REMOVE ${CLEAN_FILES})
ENDIF()
IF(ILEAN_FILES)
FILE(REMOVE ${ILEAN_FILES})
ENDIF()
IF(TAGS_FILES)
FILE(REMOVE ${TAGS_FILES})
ENDIF()