Partially revert 37c93ba0, fixes #664

GLFW_LIB_NAME is required for the generation of the glfw3.pc pkg-config
file, so add it back.
This commit is contained in:
Emmanuel Gil Peyrot 2015-12-30 20:22:31 +01:00
parent 06899bd9a6
commit bf4306a668

View File

@ -355,6 +355,16 @@ foreach(arg ${glfw_PKG_LIBS})
set(GLFW_PKG_LIBS "${GLFW_PKG_LIBS} ${arg}")
endforeach()
#--------------------------------------------------------------------
# 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()
#--------------------------------------------------------------------
# Create generated files
#--------------------------------------------------------------------