Merge pull request #207 from SubjectName/Compile_Option_fix

Add option for WinRT.
This commit is contained in:
Robert Beckebans 2014-11-15 14:41:35 +01:00
commit 29caf7a01d

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