mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 02:31:46 +00:00
Merge 2d4d867a91
into 228e58262e
This commit is contained in:
commit
6c0adeaaa5
@ -257,7 +257,14 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
|
||||
endif()
|
||||
|
||||
if (GLFW_BUILD_WIN32)
|
||||
target_compile_definitions(glfw PRIVATE UNICODE _UNICODE)
|
||||
# If requested, create a C #define to set the app's window class name.
|
||||
# This class name is baked in at compile time.
|
||||
set(_GLFW_WCN "")
|
||||
if (GLFW_WNDCLASSNAME)
|
||||
set(_GLFW_WCN "_GLFW_WNDCLASSNAME=L\"${GLFW_WNDCLASSNAME}\"")
|
||||
endif()
|
||||
|
||||
target_compile_definitions(glfw PRIVATE UNICODE _UNICODE ${_GLFW_WCN})
|
||||
endif()
|
||||
|
||||
# HACK: When building on MinGW, WINVER and UNICODE need to be defined before
|
||||
|
Loading…
Reference in New Issue
Block a user