From a6a5aced9a439571afab5ae534aa5465e8bb1647 Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Tue, 1 Nov 2022 09:15:49 +0100 Subject: [PATCH] cmake: lookup strip tool and set CMAKE_STRIP for host-gnu target Fixes: #51821 Set CMAKE_STRIP using `find_program(CMAKE_STRIP strip)` to support strip when building on native posix. Signed-off-by: Torsten Rasmussen --- cmake/bintools/host-gnu/target.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/bintools/host-gnu/target.cmake b/cmake/bintools/host-gnu/target.cmake index c24e71fc2ecf09..2022905e871cf4 100644 --- a/cmake/bintools/host-gnu/target.cmake +++ b/cmake/bintools/host-gnu/target.cmake @@ -8,6 +8,7 @@ find_program(CMAKE_AR ar ) find_program(CMAKE_RANLIB ranlib ) find_program(CMAKE_READELF readelf) find_program(CMAKE_NM nm) +find_program(CMAKE_STRIP strip) find_program(CMAKE_GDB gdb )