1
0

Fix compilation on ARMv7.Fixes #2387.

This commit is contained in:
Zack Piper 2015-07-24 18:02:03 +00:00
parent 7cb981443e
commit 2a3f0de94d

View File

@ -94,6 +94,10 @@ macro(set_flags)
OUTPUT_VARIABLE GCC_VERSION)
endif()
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}" "-fomit-frame-pointer")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_COVERAGE} -std=c++11")