Perhaps it’s a dumb question. I am trying to get use of the new SDL callbacks. So I simply build SDL along my project as a CMake subdirectory:
set(SDL3_DIR "${CMAKE_SOURCE_DIR}/sdl" CACHE STRING
"Path to SDL3 subdirectory")
set(SDL3_BUILD_TYPE Debug CACHE STRING
"SDL3 build type")
add_subdirectory(${SDL3_DIR})
But since the main function gets compiled to SDL’s shared library now I can’t trace memory leaks in valgrind. I tried also to build it as static library and then valgrind shows me only path to my executable instead.
How to properly build SDL along my application to preserve file names in debug symbols?