From 30fa6de45c8fae29c812ddf12a9aade3f8cd3ea7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 16 Oct 2023 07:09:27 +0200 Subject: maybe don't special-case win32 suffix --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index efbbe0ad..b8c54a48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,11 +221,7 @@ function(fm_add_debug_info self) if(NOT CMAKE_OBJCOPY) message(FATAL_ERROR "objcopy missing") endif() - if(WIN32) - set(exe "${self}.exe") - else() - set(exe "${self}") - endif() + set(exe "${self}${CMAKE_EXECUTABLE_SUFFIX}") add_custom_command(TARGET ${self} POST_BUILD COMMAND "${CMAKE_OBJCOPY}" --only-keep-debug "${exe}" "${exe}.debug" COMMAND "${CMAKE_OBJCOPY}" --strip-all "${exe}" -- cgit v1.2.3