Fix build for Android arm64-v8a
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Tue, 9 Dec 2014 09:06:56 +0000 (12:06 +0300)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Tue, 9 Dec 2014 09:06:56 +0000 (12:06 +0300)
3rdparty/libpng/CMakeLists.txt

index 7dd06df..0abb68f 100644 (file)
@@ -14,7 +14,7 @@ ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" ${ZLIB_INCLUDE_DIRS})
 file(GLOB lib_srcs *.c)
 file(GLOB lib_hdrs *.h)
 
-if(NEON)
+if(NEON AND CMAKE_SIZEOF_VOID_P EQUAL 4)
   list(APPEND lib_srcs arm/filter_neon.S)
   add_definitions(-DPNG_ARM_NEON)
 endif()