This makes it easier to use Wildmidi as a Git submodule, and I don't see any downsides to the change.
Without this change, the target libwildmidi_static is not generated at all unless WANT_STATIC==ON, so a project that wants to embed Wildmidi statically has to override the un-prefixed, global option WANT_STATIC, which just feels messy and wrong.
This makes it easier to use Wildmidi as a Git submodule, and I don't see any downsides to the change.
Without this change, the target
libwildmidi_static
is not generated at all unlessWANT_STATIC==ON
, so a project that wants to embed Wildmidi statically has to override the un-prefixed, global optionWANT_STATIC
, which just feels messy and wrong.I've checked my changes against CMake 3.1 docs.