File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ else()
100
100
endif ()
101
101
102
102
if (NOT MSVC )
103
- set (CMAKE_C_FLAGS "-fpic" )
104
- set (CMAKE_CXX_FLAGS "-fpic" )
103
+ set (CMAKE_C_FLAGS "-fpic -Wno-error=deprecated-declarations " )
104
+ set (CMAKE_CXX_FLAGS "-fpic -Wno-error=deprecated-declarations " )
105
105
endif ()
106
106
107
107
message ("thirdparty packages will be installed to ${THIRDPARTY_DIR} " )
@@ -192,6 +192,12 @@ else()
192
192
endif ()
193
193
194
194
if (BUILD_PNG )
195
+ set (png_extra_flags )
196
+
197
+ if (APPLE )
198
+ set (png_extra_flags -DPNG_ARM_NEON=on )
199
+ endif ()
200
+
195
201
ExternalProject_Add (
196
202
png
197
203
DEPENDS zlib
@@ -208,6 +214,7 @@ if(BUILD_PNG)
208
214
-DPNG_STATIC=ON
209
215
-DPNG_TESTS=OFF
210
216
-DPNG_DEBUG=OFF
217
+ ${png_extra_flags}
211
218
-DAWK= # Needed for multi-arch build on macOS
212
219
INSTALL_DIR ${THIRDPARTY_DIR} /png
213
220
)
@@ -232,6 +239,7 @@ if(BUILD_ASSIMP)
232
239
-DASSIMP_BUILD_TESTS=OFF
233
240
-DASSIMP_BUILD_ASSIMP_TOOLS=OFF
234
241
-DASSIMP_NO_EXPORT=ON
242
+ -DASSIMP_WARNINGS_AS_ERRORS=OFF
235
243
-DLIBRARY_SUFFIX=
236
244
-DZLIB_LIBRARY_DBG=${ZLIB_LIBRARY}
237
245
-DZLIB_LIBRARY_REL=${ZLIB_LIBRARY}
@@ -809,7 +817,7 @@ if(BUILD_FFMPEG AND APPLE)
809
817
if (arch STREQUAL "arm64" )
810
818
set (configure_flags --enable-cross-compile --arch=arm64 --target-os=darwin )
811
819
else ()
812
- set (configure_flags )
820
+ set (configure_flags --arch=x86_64 --target-os=darwin )
813
821
endif ()
814
822
815
823
ExternalProject_Add (
You can’t perform that action at this time.
0 commit comments