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 - CMake Windows builds dll even though only static set
Summary: CMake Windows builds dll even though only static set
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: x86 Windows 10
: P2 enhancement
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-25 16:31 UTC by daegon.dhsk
Modified: 2020-05-25 16:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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