Use SOVERSION for shared libraries on Unix-like systems.

This commit is contained in:
John Bartholomew
2012-07-30 01:04:08 +01:00
parent 93ec9fa901
commit 0f0e42b975
3 changed files with 17 additions and 2 deletions
+10
View File
@@ -215,6 +215,16 @@ endif()
#--------------------------------------------------------------------
set(GLFW_LIBRARIES ${glfw_LIBRARIES} CACHE STRING "Dependencies of GLFW")
#--------------------------------------------------------------------
# Choose library output name
#--------------------------------------------------------------------
if (BUILD_SHARED_LIBS AND UNIX)
# On Unix-like systems, shared libraries can use the soname system.
set(GLFW_LIB_NAME glfw)
else()
set(GLFW_LIB_NAME glfw3)
endif()
#--------------------------------------------------------------------
# Add subdirectories
#--------------------------------------------------------------------