Win32: Link imm32 on building examples and tests

This commit is contained in:
Takuro Ashie 2022-04-06 16:29:52 +09:00 committed by Daijiro Fukuda
parent d808d1d274
commit d97e954aa3
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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()