FindGLEW: Fix macOS support
In particular:
-
macOS is recognized as both
UNIX
andAPPLE
. Consequently, the library suffix for shared and static library was set, respectively, as .so and .a, just like UNIX system. -
macOS requires OpenGL as INTERFACE_LINK_LIBRARIES dependency in the GLEW targets.
Fixes: #19542 (closed)
Topic-rename: FindGLEW-macOS