# \[SDL2\] Why it doesn't provide package configuration files for CMake?

**URL:** <https://discourse.libsdl.org/t/sdl2-why-it-doesnt-provide-package-configuration-files-for-cmake/21368>\
**Category:** SDL Development\
**Created:** [May 7, 2015, 1:37pm UTC](https://discourse.libsdl.org/t/sdl2-why-it-doesnt-provide-package-configuration-files-for-cmake/21368 "2015-05-07T13:37:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin\_Bazin](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/q/b5e925/32.png) [@Quentin\_Bazin](https://discourse.libsdl.org/u/Quentin_Bazin)\
**Post date:** [May 7, 2015, 1:37pm UTC](https://discourse.libsdl.org/t/sdl2-why-it-doesnt-provide-package-configuration-files-for-cmake/21368/1 "2015-05-07T13:37:09Z")

</div>

[https://bugzilla.libsdl.org/show\_bug.cgi?id=2464](https://bugzilla.libsdl.org/show_bug.cgi?id=2464)

I tried to add FindSDL2\*.cmake to CMake repo on github, here’s the answer:

"Thanks for working on this. However, as discussed here:

[http://www.cmake.org/Bug/view.php?id=14826#c35508](http://www.cmake.org/Bug/view.php?id=14826#c35508)

since SDL2 builds with CMake they should provide package configuration  
files as documented in the cmake-packages(7) manual:

[http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html](http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html)

CMake upstream should not have to maintain builtin knowledge about every  
library of every package out there, especially not those that are already  
CMake-aware. The place to contribute support for using SDL2 from  
CMake-based applications is to SDL2."

---

<div class="post-metadata">

**Author:** ![Daniel\_Gibson](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/daniel_gibson/32/3010_2.png) [@Daniel\_Gibson](https://discourse.libsdl.org/u/Daniel_Gibson)\
**Post date:** [May 8, 2015, 7:08pm UTC](https://discourse.libsdl.org/t/sdl2-why-it-doesnt-provide-package-configuration-files-for-cmake/21368/2 "2015-05-08T19:08:06Z")

</div>

Oh, another cmake thread.

Yeah, please merge that, having to provide my own FindSDL2.cmake in my  
projects sucks.

Cheers,  
DanielOn 05/07/2015 03:37 PM, Quentin Bazin wrote:

> [Configure a sdl2-config.cmake.in together with sdl2.pc.in · Issue #1415 · libsdl-org/SDL · GitHub](https://bugzilla.libsdl.org/show_bug.cgi?id=2464)
> 
> I tried to add FindSDL2\*.cmake to CMake repo on github, here’s the answer:
> 
> "Thanks for working on this. However, as discussed here:
> 
> [http://www.cmake.org/Bug/view.php?id=14826#c35508](http://www.cmake.org/Bug/view.php?id=14826#c35508)
> 
> since SDL2 builds with CMake they should provide package configuration  
> files as documented in the cmake-packages(7) manual:
> 
> [cmake-packages(7) — CMake 3.2.3 Documentation](http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html)
> 
> CMake upstream should not have to maintain builtin knowledge about every  
> library of every package out there, especially not those that are  
> already CMake-aware. The place to contribute support for using SDL2 from  
> CMake-based applications is to SDL2."
