We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4380 - [PATCH] CMake: small error and code cleanup
Summary: [PATCH] CMake: small error and code cleanup
Status: NEW
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Windows 10
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-14 08:28 UTC by David Demelier
Modified: 2018-11-14 09:26 UTC (History)
0 users

See Also:


Attachments
CMake.patch (2.24 KB, text/plain)
2018-11-14 08:28 UTC, David Demelier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Demelier 2018-11-14 08:28:19 UTC
Created attachment 3488 [details]
CMake.patch

Hello,

I'm sorry the initial CMake support got a small error that made it non-working on Linux system because I only have tested it on a case-insensitive OS.

The patch changes the file names to the lowercase convention to avoid this kind of errors.

sdl2_ttf-config.cmake
sdl2_ttf-config-version.cmake
sdl2_ttf-config-targets.cmake

I propose to do the same for SDL and will do it if your okay (it's fully backward compatible).
Comment 1 David Demelier 2018-11-14 08:29:17 UTC
To use SDL2_ttf on CMake project:

    find_package(SDL2_ttf)
    target_link_libraries(myexe SDL2::SDL2_ttf)