Commit 21f84e53 authored by Kenneth Moreland's avatar Kenneth Moreland

Make logclean target cross-platform

Instead of detecting the platform and guessing the right file delete
function, use the cmake -E command to do the delete in a cross-platform
way.
parent a7aa5efd
......@@ -164,8 +164,9 @@ IF (ICET_TESTS_USE_OPENGL)
ENDFOREACH(test)
ENDIF (ICET_TESTS_USE_OPENGL)
IF (WIN32)
ADD_CUSTOM_TARGET(logclean erase log.???? *.ppm)
ELSE (WIN32)
ADD_CUSTOM_TARGET(logclean rm -f log.???? *.ppm core.*)
ENDIF (WIN32)
ADD_CUSTOM_TARGET(logclean
${CMAKE_COMMAND} -E remove
${CMAKE_CURRENT_BINARY_DIR}/log.????
${CMAKE_CURRENT_BINARY_DIR}/*.ppm
${CMAKE_CURRENT_BINARY_DIR}/core.*
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment