diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9f0620d..86c2386 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -12,7 +12,7 @@ if(DEFINED ENV{STATIC_ANALYSIS}) endif() if(CMAKE_C_FLAGS MATCHES "--analyze") - set(CMAKE_C_LINK_EXECUTABLE "echo 'Will not execute binary when running static analysis'") + set(CMAKE_C_LINK_EXECUTABLE "echo 'Will not execute binary when running static analysis'; rm -f ./erc-test") endif() if(APPLE)