diff --git a/cmake/FunctionSwitch.cmake b/cmake/FunctionSwitch.cmake index 9946738c..f6956c14 100644 --- a/cmake/FunctionSwitch.cmake +++ b/cmake/FunctionSwitch.cmake @@ -43,5 +43,8 @@ if(${NE10_TARGET_ARCH} STREQUAL "armv7") add_definitions(-DENABLE_NE10_PHYSICS_RELATIVE_V_VEC2F_NEON) add_definitions(-DENABLE_NE10_PHYSICS_APPLY_IMPULSE_VEC2F_NEON) endif() + if(NE10_ENABLE_IMGPROC) + add_definitions(-DENABLE_NE10_IMG_ROTATE_RGBA_NEON) + endif() endif() endif() diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 23b62358..7398ab74 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -276,8 +276,6 @@ if(NE10_ENABLE_IMGPROC) ) if(${NE10_TARGET_ARCH} STREQUAL "armv7") - # Following definition is only available under armv7. - add_definitions(-DENABLE_NE10_IMG_ROTATE_RGBA_NEON) # Add image processing NEON files. set(NE10_IMGPROC_NEON_SRCS ${PROJECT_SOURCE_DIR}/modules/imgproc/NE10_rotate.neon.s