2015-07-16 09:55:23 +02:00
|
|
|
# ==========================================================================
|
|
|
|
# 2015 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes
|
|
|
|
# with no warranties. This code is yours to share, use and modify with no
|
|
|
|
# strings attached and no restrictions or obligations.
|
|
|
|
#
|
|
|
|
# For more information see g3log/LICENSE or refer refer to http://unlicense.org
|
|
|
|
# ============================================================================*/
|
|
|
|
|
2015-07-16 08:27:17 +02:00
|
|
|
|
|
|
|
set(cmake_generated ${CMAKE_BINARY_DIR}/CMakeCache.txt
|
|
|
|
${CMAKE_BINARY_DIR}/cmake_install.cmake
|
|
|
|
${CMAKE_BINARY_DIR}/Makefile
|
|
|
|
${CMAKE_BINARY_DIR}/CMakeFiles
|
|
|
|
)
|
|
|
|
|
|
|
|
foreach(file ${cmake_generated})
|
|
|
|
if (EXISTS ${file})
|
2017-05-17 22:31:19 +02:00
|
|
|
message( STATUS "Removing: ${file}" )
|
2015-07-16 08:27:17 +02:00
|
|
|
file(REMOVE_RECURSE ${file})
|
|
|
|
endif()
|
|
|
|
endforeach(file)
|