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

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) ...@@ -164,8 +164,9 @@ IF (ICET_TESTS_USE_OPENGL)
ENDFOREACH(test) ENDFOREACH(test)
ENDIF (ICET_TESTS_USE_OPENGL) ENDIF (ICET_TESTS_USE_OPENGL)
IF (WIN32) ADD_CUSTOM_TARGET(logclean
ADD_CUSTOM_TARGET(logclean erase log.???? *.ppm) ${CMAKE_COMMAND} -E remove
ELSE (WIN32) ${CMAKE_CURRENT_BINARY_DIR}/log.????
ADD_CUSTOM_TARGET(logclean rm -f log.???? *.ppm core.*) ${CMAKE_CURRENT_BINARY_DIR}/*.ppm
ENDIF (WIN32) ${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