Thanks for the patch. But... I do very much believe this must be a separate finder. libsdl1 is not libsdl2 so you cannot give someone who does find_package(libsdl) the latter, nor can you give someone who wants find_package(libsdl2) the former. Which unfortunatley is what happens if you fiddle libsdl2 support into the same finder. Therefore what really is needed is FindSDL2.cmake.
Also, please submit your wish upstream to the CMake developers directly. ** Changed in: cmake (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1231499 Title: CMake does not find SDL2 includes/libraries. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1231499/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs