Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Loading...