From 9803c9da0eebbaefc7cbd1dea0c134b9c9e1fdfb Mon Sep 17 00:00:00 2001 From: SubjectName Date: Sat, 15 Nov 2014 00:50:03 +0900 Subject: [PATCH] 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. --- neo/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 06496352..aef81b37 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -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()