On 19.07.2015 08:38, Yaron Cohen-Tal wrote:
Hi,

For example, I currently have both versions 2 and 3 of the GLFW library installed on my Linux computer, named "libglfw.so.2" and "libglfw.so.3". Is it possible to tell CMake to find a specific version of GLFW (say, version 3), and it would be smart enough to look for "libglfw.so.3" or "libglfw.so.3.*" or "libglfw.so.3.*.*"? (Or something equivalent in Mac and Windows)

Those are SONAMEs of the library intended for the runtime loader.
Any number of those may be present in the same installation prefix to satisfy runtime dependencies.

By convention only one version within that prefix may be available for development at a time. For that a symlink from libglfw.so to the actual library will be present and required header files matching that version will be present.

Hence libglfw.so is intended for development and its presence implies that appropriate headers should be available as well. The sole presence of libglfw.so.2 or libglfw.so.3 neither implies that headers will be available nor do you know which of those versions those headers would be for.

Nils
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to