This commit is contained in:
parent
e37e0f661f
commit
0b7e5ab901
6 changed files with 143 additions and 28 deletions
|
|
@ -39,7 +39,14 @@ else()
|
|||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL Windows)
|
||||
option(MW_USE_DIRECTWRITE "Use DirectWrite" ON)
|
||||
# DirectWrite stuff can only be used on Win10+
|
||||
if(${CMAKE_SYSTEM_VERSION} GREATER_EQUAL 10)
|
||||
message(STATUS "DirectWrite support has been enabled")
|
||||
option(MW_USE_DIRECTWRITE "Use DirectWrite" ON)
|
||||
else()
|
||||
message(WARNING "DirectWrite support has been disabled (must be compiling on Win10+)")
|
||||
option(MW_USE_DIRECTWRITE "Use DirectWrite" OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL Linux OR ${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue