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
+6 -1
View File
@@ -30,9 +30,14 @@ elseif (_GLFW_X11_GLX)
endif()
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS})
set_target_properties(glfw PROPERTIES OUTPUT_NAME "glfw3")
set_target_properties(glfw PROPERTIES OUTPUT_NAME "${GLFW_LIB_NAME}")
if (BUILD_SHARED_LIBS)
# Include version information in the output
set_target_properties(glfw PROPERTIES VERSION ${GLFW_VERSION})
if (UNIX)
set_target_properties(glfw PROPERTIES SOVERSION ${GLFW_VERSION_MAJOR})
endif()
if (_GLFW_WIN32_WGL)
# The GLFW DLL needs a special compile-time macro and import library name