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
This commit is contained in:
parent
3c45cdc559
commit
3478d55236
@ -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)
|
||||
if(UNIX)
|
||||
if(USE_CPP2011)
|
||||
add_definitions("-std=gnu++11")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# OpenGL
|
||||
|
Loading…
Reference in New Issue
Block a user