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 5157

Summary: CMake Windows builds dll even though only static set
Product: SDL Reporter: daegon.dhsk
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: don't know   
Hardware: x86   
OS: Windows 10   

Description daegon.dhsk 2020-05-25 16:31:25 UTC
Hi, I'm noticing on Windows that sdl builds both the dll + static version of sdl even though I set:

set(SDL_SHARED OFF FORCE)
set(SDL_STATIC ON FORCE)

What would be ideal is that in this case, the static library is built with the name 'SDL2.lib' instead of the usual 'SDL2-static.lib'

This shouldn't be hard a fix, and would make it easier to pick up static builds of sdl