CMake cannot find SDL_net libraries and methods, but manual g++ compilation works
I’m having trouble with my CMake configuration for a project that uses SDL2 and SDL2_net. When I compile manually with g++, everything works fine. However, with CMake, the compiler cannot find the SDLNet_TCP_Accept method and other methods implemented in SDLnetTCP.c.