How to refer to SDL2 include path with SDL 2.0.8 as cmake IMPORTED TARGET?


#1

I’m using cmake to build a library depending on SDL2. My Linux distribution recently switched to cmake for building SDL2. Thus, the SDL2Config.cmake provided with it only delivers an SDL2 target to link against.

However, my cmake script needs the SDL2 include path as a variable. How do I access it after this change?