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:
SubjectName 2014-11-15 00:50:03 +09:00
parent 54fb0ec6ad
commit 9803c9da0e

View file

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