[CMAKE] Do not add any extension to separate debug symbol files (#1000)
authorJérôme Gardou <zefklop@users.noreply.github.com>
Tue, 30 Oct 2018 16:23:42 +0000 (17:23 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 16:23:42 +0000 (17:23 +0100)
There is no possibility for GDB to recognize them otherwise

sdk/cmake/gcc.cmake

index ae4056b..da203e5 100644 (file)
@@ -190,9 +190,10 @@ if(SEPARATE_DBG)
     message(STATUS "Building separate debug symbols")
     file(MAKE_DIRECTORY ${REACTOS_BINARY_DIR}/symbols)
     if(CMAKE_GENERATOR STREQUAL "Ninja")
+        set(CMAKE_DEBUG_SYMBOL_SUFFIX "")
         set(SYMBOL_FILE <TARGET_PDB>)
     else()
-        set(SYMBOL_FILE <TARGET>.gdb)
+        set(SYMBOL_FILE <TARGET>)
     endif()
     set(OBJCOPY ${CMAKE_OBJCOPY})
     set(CMAKE_C_LINK_EXECUTABLE