Skip to content

Commit

Permalink
fix android compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasRan committed Feb 7, 2023
1 parent 526be5b commit 6307986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/FCVFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if(BUILD_FCV_MEDIA_IO)

# Build with libpng.
if(WITH_LIB_PNG)
include(external/zlib)
include(external/libpng)
include(external/zlib)
add_dependencies(libpng zlib)
add_definitions(-DWITH_LIB_PNG)
endif(WITH_LIB_PNG)
Expand Down
2 changes: 1 addition & 1 deletion cmake/external/libpng.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ list(APPEND LIBPNG_CMAKE_ARGS
-DPNG_BUILD_ZLIB=ON)

if(NOT APPLE)
list(APPEND LIBJPEG_CMAKE_ARGS
list(APPEND LIBPNG_CMAKE_ARGS
-DCMAKE_CXX_FLAGS:STRING="-fPIC"
-DCMAKE_CXX_FLAGS:STRING="-w"
-DCMAKE_C_FLAGS:STRING="-fPIC"
Expand Down

0 comments on commit 6307986

Please sign in to comment.