Fix C++ standard also on AVR target (#3401 needs c++11)

This commit is contained in:
Arne Schwabe
2016-04-17 13:36:15 +02:00
parent 41a5af5a6e
commit e62759e5f2
+5
View File
@@ -1025,6 +1025,11 @@ else()
cmake_force_cxx_compiler(avr-gcc GNU)
set(CMAKE_CXX_FLAGS "-mmcu=${MCU} -DF_CPU=16000000UL -O${OPT} -gdwarf-2 -fno-exceptions -flto -fwhole-program -fno-inline-small-functions -mstrict-X ${WARNING_FLAGS}")
# Remove once the minimum cmake version is set to 3.1 in the main CmakeLists.tx
if (${CMAKE_VERSION} VERSION_LESS 3.1.0})
set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}")
endif()
include_directories(storage gui/${GUI_DIR})