1
0

Merge pull request #2388 from zackp30/armv7-cmake

Fix compilation on ARMv7. Fixes #2387.
This commit is contained in:
Mattes D 2015-07-29 14:59:23 +02:00
commit e2ec59095f

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")