Fix Android build with cmake 2.6.3
This commit is contained in:
1
3rdparty/libpng/CMakeLists.txt
vendored
1
3rdparty/libpng/CMakeLists.txt
vendored
@@ -30,6 +30,7 @@ if(MSVC)
|
|||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
add_library(${PNG_LIBRARY} STATIC ${lib_srcs} ${lib_hdrs})
|
add_library(${PNG_LIBRARY} STATIC ${lib_srcs} ${lib_hdrs})
|
||||||
|
target_link_libraries(${PNG_LIBRARY} ${ZLIB_LIBRARY})
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX OR CV_ICC)
|
if(CMAKE_COMPILER_IS_GNUCXX OR CV_ICC)
|
||||||
|
@@ -796,6 +796,7 @@ set( CMAKE_ASM_COMPILER_ID GNU )
|
|||||||
set( CMAKE_ASM_COMPILER_WORKS TRUE )
|
set( CMAKE_ASM_COMPILER_WORKS TRUE )
|
||||||
set( CMAKE_ASM_COMPILER_FORCED TRUE )
|
set( CMAKE_ASM_COMPILER_FORCED TRUE )
|
||||||
set( CMAKE_COMPILER_IS_GNUASM 1)
|
set( CMAKE_COMPILER_IS_GNUASM 1)
|
||||||
|
set( CMAKE_ASM_SOURCE_FILE_EXTENSIONS s S asm )
|
||||||
|
|
||||||
# NDK flags
|
# NDK flags
|
||||||
if( ARMEABI OR ARMEABI_V7A )
|
if( ARMEABI OR ARMEABI_V7A )
|
||||||
|
Reference in New Issue
Block a user