From 908b9f3ec7a456cbe81371e494c857e8b6a6dc60 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 29 Feb 2016 10:42:16 +0100 Subject: [PATCH] [cmake] remove a test binary after use --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2cd7594ff..fd5fe393de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -740,6 +740,8 @@ else() message(FATAL_ERROR "Could not figure out the stack direction. Test prog returned: ${stack}; CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}.") endif() endif() +# If the test ran well, remove the test binary +execute_process(COMMAND ${CMAKE_COMMAND} -E remove test_stackgrowth) ############### ## System checks -- 2.20.1