elmindreda/glfw — pull request #10 by johnbartholomew (2012-07-30 00:11:41+00:00)
Title: Allow GLFW 3 to be installed side-by-side with GLFW 2

This renames libglfw.pc to libglfw3.pc, and changes the library output name.

For a static library, the output name is set to glfw3. For a shared library on Unix-like systems (systems with the CMake `UNIX` flag set), the output name is glfw, and the VERSION and SOVERSION properties are set on the target. On Linux this produces `libglfw.so.3`. I think the pkg-config file requires some further change for this, in that it does not ensure that a user will link against API version 3, but I'm afraid I don't know what the correct content would be. (Perhaps specifying the path to the library directly, rather than a `-l` option?)

The first commit does something simpler, setting the output name to glfw3 on all platforms.