im trying to build sdl_img and i keep getting these errors
FAILED: showimage
: && /usr/bin/gcc -O3 -DNDEBUG CMakeFiles/showimage.dir/showimage.c.o -o showimage libSDL2_image.a /home/alyssa/coding/test2/build/x86_64-linux-gnu_Release/chalet_external/sdl/libSDL2.a && :
/usr/bin/ld: /home/alyssa/coding/test2/build/x86_64-linux-gnu_Release/chalet_external/sdl/libSDL2.a(SDL_stdlib.c.o): in function SDL_atan_REAL':
SDL_stdlib.c:(.text+0x1): undefined reference to atan'
FAILED: showanim
: && /usr/bin/gcc -O3 -DNDEBUG CMakeFiles/showanim.dir/showanim.c.o -o showanim libSDL2_image.a /home/alyssa/coding/test2/build/x86_64-linux-gnu_Release/chalet_external/sdl/libSDL2.a && :
/usr/bin/ld: /home/alyssa/coding/test2/build/x86_64-linux-gnu_Release/chalet_external/sdl/libSDL2.a(SDL_stdlib.c.o): in function SDL_atan_REAL':
SDL_stdlib.c:(.text+0x1): undefined reference to 'atan`
is there some cmake options im missing or what versions of sdl are sdl_img compatable with