robotology / ycm-cmake-modules

YCM (YCM CMake modules) is a collection of various useful CMake modules.
http://robotology.github.io/ycm-cmake-modules
Other
50 stars 22 forks source link

FindGLFW3: Use glfw3Config.cmake and mark module as deprecated #441

Closed traversaro closed 6 months ago

traversaro commented 6 months ago

The idea is to mitigate the problems related to https://github.com/robotology/robotology-superbuild/pull/1598#issuecomment-1942172913, and mark the module as deprecated so that we can remove it in a future version of YCM. After this change, find_package(GLFW3) will set to true glfw3_FOUND, and will print a deprecation warning.

Note that glfw3Config.cmake is available since Ubuntu 20.04 : https://packages.ubuntu.com/focal/amd64/libglfw3-dev/filelist .