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

Summary: [PATCH] CMake: small error and code cleanup
Product: SDL_ttf Reporter: David Demelier <markand>
Component: miscAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Windows 10   
Attachments: CMake.patch

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)