Commit 4d75ce43 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[FIX] now the cleantest target will work again, platform independent

parent bc90009a
......@@ -200,7 +200,7 @@ ADD_CUSTOM_TARGET( vtest
#-------------------------------------------------------------------------------------------------------------
# Removes all tests thus forcing them to be recompiled during the next "make"
ADD_CUSTOM_TARGET( cleantest
COMMAND rm -f ${PROJECT_BINARY_DIR}/*/*_test.cc
COMMAND ${CMAKE_COMMAND} -P ${PROJECT_BINARY_DIR}/../tools/CMakeModules/RemoveGeneratedTests.cmake
COMMENT "Remove all tests to force them to be recompiled"
)
......
# this is a platform independent script for removing *_test.cc files:
#--------------------------------------------------------------------
FILE( GLOB_RECURSE GENERATED_TESTS ${CMAKE_CURRENT_BINARY_DIR}/*_test.cc )
# we need a dummy in case of multiple invocation of the "make cleantest" target
LIST( APPEND GENERATED_TESTS non_existing_dummy_file )
FILE( REMOVE ${GENERATED_TESTS} )
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