mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-23 02:00:58 +00:00
Add option for WinRT.
"if( ${CMAKE_SYSTEM_VERSION} EQUAL 6.2 )" works for all versions of Win8. These changes will suppress compile error when building except for RT.
This commit is contained in:
parent
54fb0ec6ad
commit
9803c9da0e
1 changed files with 5 additions and 2 deletions
|
@ -20,7 +20,10 @@ option(FFMPEG
|
|||
|
||||
option(ONATIVE
|
||||
"Optimize for the host CPU" OFF)
|
||||
|
||||
|
||||
option(FORRT
|
||||
"Build for Windows RT" OFF)
|
||||
|
||||
option(USE_SYSTEM_ZLIB
|
||||
"Use the system zlib instead of the bundled one" OFF)
|
||||
|
||||
|
@ -173,7 +176,7 @@ elseif(MSVC)
|
|||
#-DUSE_OPENAL
|
||||
-DUSE_EXCEPTIONS)
|
||||
## Check for Version ##
|
||||
if( ${CMAKE_SYSTEM_VERSION} EQUAL 6.2 ) # Windows 8
|
||||
if( FORRT ) # Windows RT
|
||||
add_definitions(-DUSE_WINRT)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue