From 3478d55236b8d4447ab0ed34a906eed44fcaf050 Mon Sep 17 00:00:00 2001 From: funto66 Date: Thu, 14 Nov 2013 22:17:46 +0000 Subject: [PATCH] Only expose USE_CPP2011 option for relevant platforms (UNIX-like) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14432 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 823832976..844f33ad3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,9 @@ endif() option(USE_WIIUSE "Support for wiimote input devices" OFF) option(USE_FRIBIDI "Support for right-to-left languages" ON) -option(USE_CPP2011 "Activate C++ 2011 mode (GCC only)" OFF) +if(UNIX) + option(USE_CPP2011 "Activate C++ 2011 mode (GCC only)" OFF) +endif() if(MSVC) # Normally hide the option to build wiiuse on VS, since it depends # on the installation of the Windows DDK (Driver Developer Kit), @@ -117,8 +119,10 @@ if(USE_FRIBIDI) endif() endif() -if(USE_CPP2011) - add_definitions("-std=gnu++11") +if(UNIX) + if(USE_CPP2011) + add_definitions("-std=gnu++11") + endif() endif() # OpenGL