Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[cmake] remove a test binary after use
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 29 Feb 2016 09:42:16 +0000 (10:42 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 29 Feb 2016 09:42:16 +0000 (10:42 +0100)
CMakeLists.txt

index c2cd759..fd5fe39 100644 (file)
@@ -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