diff options
-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}" |