mirror of
https://github.com/glfw/glfw.git
synced 2025-06-07 16:24:57 +00:00
Add the suffix of dll.
This commit is contained in:
parent
3eaf1255b2
commit
1c979992a6
@ -8,6 +8,6 @@ Description: A multi-platform library for OpenGL, window and input
|
|||||||
Version: @GLFW_VERSION@
|
Version: @GLFW_VERSION@
|
||||||
URL: https://www.glfw.org/
|
URL: https://www.glfw.org/
|
||||||
Requires.private: @GLFW_PKG_CONFIG_REQUIRES_PRIVATE@
|
Requires.private: @GLFW_PKG_CONFIG_REQUIRES_PRIVATE@
|
||||||
Libs: -L${libdir} -l@GLFW_LIB_NAME@
|
Libs: -L${libdir} -l@GLFW_LIB_NAME@@GLFW_LIB_NAME_SUFFIX@
|
||||||
Libs.private: @GLFW_PKG_CONFIG_LIBS_PRIVATE@
|
Libs.private: @GLFW_PKG_CONFIG_LIBS_PRIVATE@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
@ -387,7 +387,12 @@ set(GLFW_PKG_CONFIG_REQUIRES_PRIVATE "${deps}" CACHE INTERNAL
|
|||||||
"GLFW pkg-config Requires.private")
|
"GLFW pkg-config Requires.private")
|
||||||
set(GLFW_PKG_CONFIG_LIBS_PRIVATE "${libs}" CACHE INTERNAL
|
set(GLFW_PKG_CONFIG_LIBS_PRIVATE "${libs}" CACHE INTERNAL
|
||||||
"GLFW pkg-config Libs.private")
|
"GLFW pkg-config Libs.private")
|
||||||
|
set(GLFW_LIB_NAME_SUFFIX "")
|
||||||
|
if (BUILD_SHARED_LIBS)
|
||||||
|
if (WIN32)
|
||||||
|
set(GLFW_LIB_NAME_SUFFIX "dll")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
configure_file("${GLFW_SOURCE_DIR}/CMake/glfw3.pc.in" glfw3.pc @ONLY)
|
configure_file("${GLFW_SOURCE_DIR}/CMake/glfw3.pc.in" glfw3.pc @ONLY)
|
||||||
|
|
||||||
if (GLFW_INSTALL)
|
if (GLFW_INSTALL)
|
||||||
|
Loading…
Reference in New Issue
Block a user