Description
Recently, a major CMake rework was done in the SDL2 subprojects, adding a consistent naming for the targets. Unfortunately, the naming chosen is inconsistent with the one used by vcpkg's ports.
The new naming consists in:
- The namespace
SDL2_XXX:: where XXX is the name of the subproject
- A static target
SDL2_XXX::SDL_XXX-static linked to SDL2::SDL2-static
- A dynamic target
SDL2_XXX::SDL_XXX linked to SDL2::SDL2
Proposed solution
Adopt the naming chosen by the maintainers.
Alternatives
To avoid breaking existing projects/ports, the targets currently in use by vcpkg could be kept as an alias of the new one with a deprecation message, similar to what is currently done in SDL_ttf.
Additional context
Related PRs:
Description
Recently, a major CMake rework was done in the SDL2 subprojects, adding a consistent naming for the targets. Unfortunately, the naming chosen is inconsistent with the one used by vcpkg's ports.
The new naming consists in:
SDL2_XXX::whereXXXis the name of the subprojectSDL2_XXX::SDL_XXX-staticlinked toSDL2::SDL2-staticSDL2_XXX::SDL_XXXlinked toSDL2::SDL2Proposed solution
Adopt the naming chosen by the maintainers.
Alternatives
To avoid breaking existing projects/ports, the targets currently in use by vcpkg could be kept as an alias of the new one with a deprecation message, similar to what is currently done in SDL_ttf.
Additional context
Related PRs: