diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 07:09:27 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 07:09:27 +0200 |
| commit | 30fa6de45c8fae29c812ddf12a9aade3f8cd3ea7 (patch) | |
| tree | 41ac2199de2e8a3f03f68916ee122b07b8fea43e | |
| parent | 32e02f820091878c0d04e7aa81bcf08a92353e84 (diff) | |
maybe don't special-case win32 suffix
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 1 insertions, 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}" |
