|
|
@ -124,6 +124,13 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
|
|
|
|
|
|
|
|
endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
|
|
|
endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon -march=native -DIS_ARM -DHAVE_NEON")
|
|
|
|
|
|
|
|
message(STATUS "have ARM")
|
|
|
|
|
|
|
|
ELSE(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
|
|
|
|
|
|
|
|
ENDIF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_REQUIRED_FLAGS ${CMAKE_C_FLAGS})
|
|
|
|
|
|
|
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
if(NOT WIN32)
|
|
|
|
ADD_CXX_COMPILER_FLAG_IF_AVAILABLE(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN)
|
|
|
|
ADD_CXX_COMPILER_FLAG_IF_AVAILABLE(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN)
|
|
|
|