Fix Android build with cmake 2.6.3

This commit is contained in:
Andrey Kamaev 2012-08-29 03:03:36 +04:00
parent 90a3d227c9
commit e9392d1466
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ if(MSVC)
endif(MSVC)
add_library(${PNG_LIBRARY} STATIC ${lib_srcs} ${lib_hdrs})
target_link_libraries(${PNG_LIBRARY} ${ZLIB_LIBRARY})
if(UNIX)
if(CMAKE_COMPILER_IS_GNUCXX OR CV_ICC)

View File

@ -796,6 +796,7 @@ set( CMAKE_ASM_COMPILER_ID GNU )
set( CMAKE_ASM_COMPILER_WORKS TRUE )
set( CMAKE_ASM_COMPILER_FORCED TRUE )
set( CMAKE_COMPILER_IS_GNUASM 1)
set( CMAKE_ASM_SOURCE_FILE_EXTENSIONS s S asm )
# NDK flags
if( ARMEABI OR ARMEABI_V7A )