FS#58168 - [sdl2] Incorrect include path in the CMake target import file
Attached to Project:
Arch Linux
Opened by Bastien (bgK) - Sunday, 08 April 2018, 10:35 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 11 April 2018, 17:00 GMT
Opened by Bastien (bgK) - Sunday, 08 April 2018, 10:35 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 11 April 2018, 17:00 GMT
|
Details
Description:
sdl2 2.0.8-2 switched from the autotools-based build system to the CMake-based one. The issue I'm experiencing is that the file `/usr/lib64/cmake/SDL2/SDL2Targets.cmake` used when building applications using CMake against SDL2 contains an incorrect value for the include path. The include path is `/usr/include` instead of `/usr/include/SDL2`. I've reported this bug upstream https://bugzilla.libsdl.org/show_bug.cgi?id=4128, but please consider switching back to the configure build system while it is not fixed. Additional info: * sdl2 2.0.8-7 Steps to reproduce: * Unzip the attached reproducer, and try to build it (cmake . && make). It should fail with the error `test.c:1:10: SDL.h : No such file or directory` |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Wednesday, 11 April 2018, 17:00 GMT
Reason for closing: Fixed
Additional comments about closing: Nice patch
Wednesday, 11 April 2018, 17:00 GMT
Reason for closing: Fixed
Additional comments about closing: Nice patch