| Summary: | Provide proper finding capabilities on sdl2-config.cmake | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Leonardo <leonardo.guilherme> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | alexander.grund, andreas.r.fischl.work, leonardo.guilherme |
| Version: | 2.0.9 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| See Also: |
https://bugzilla.libsdl.org/show_bug.cgi?id=4116 https://bugzilla.libsdl.org/show_bug.cgi?id=4225 https://bugzilla.libsdl.org/show_bug.cgi?id=2464 |
||
| Attachments: |
Makes sdl2-config.cmake find the library instead of using paths produced by autotools
The sdl2-config.cmake replacement |
||
|
Description
Leonardo
2019-04-13 18:50:21 UTC
Created attachment 3750 [details]
The sdl2-config.cmake replacement
This is not a good solution. What you wrote is a Find-Module not a config. A config should be configured to contain the correct paths as per the installation so using paths produced by autotools is fine. You can and should use variables set by configure to set the correct values in the config file. But you are right: The config should also create an imported target SDL2::SDL2 which has everything set. The values should come from configure (see above) |