nefarius / ViGEmClient

ViGEm Client SDK for feeder development.
https://docs.nefarius.at/projects/ViGEm/
MIT License
134 stars 65 forks source link

Enforce static library if no option is specified #27

Closed Electronicks closed 1 year ago

Electronicks commented 1 year ago

If STATIC is not specified, cmake will determine whether it should be static or dynamic, which makes the option unpredictable.

Sorry for the spam, I misunderstood the reason why ViGEmClient showed up as dynamic library. It seems CMAKE makes decisions without consultation... This should work just right, and creates an option for someone who wishes to use it as a DLL. (I fully tested it this time I promise).