mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 03:32:14 +00:00
Win32: Link imm32 on building examples and tests
This commit is contained in:
parent
d808d1d274
commit
d97e954aa3
@ -13,6 +13,7 @@ if (MSVC OR CMAKE_C_SIMULATE_ID STREQUAL "MSVC")
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
link_libraries(imm32)
|
||||
set(ICON glfw.rc)
|
||||
elseif (APPLE)
|
||||
set(ICON glfw.icns)
|
||||
|
@ -153,8 +153,7 @@ if (CMAKE_VERSION VERSION_LESS "3.16" AND APPLE)
|
||||
endif()
|
||||
|
||||
if (GLFW_BUILD_WIN32)
|
||||
list(APPEND glfw_PKG_LIBS "-lgdi32")
|
||||
list(APPEND glfw_LIBRARIES "imm32")
|
||||
list(APPEND glfw_PKG_LIBS "-lgdi32 -limm32")
|
||||
endif()
|
||||
|
||||
if (GLFW_BUILD_COCOA)
|
||||
|
@ -3,6 +3,10 @@ link_libraries(glfw)
|
||||
|
||||
include_directories("${GLFW_SOURCE_DIR}/deps")
|
||||
|
||||
if (WIN32)
|
||||
link_libraries(imm32)
|
||||
endif()
|
||||
|
||||
if (MATH_LIBRARY)
|
||||
link_libraries("${MATH_LIBRARY}")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user