|
@@ -865,7 +865,13 @@ SET( ziplib_SRCS
|
|
|
../contrib/zip/src/zip.c
|
|
|
../contrib/zip/src/zip.h
|
|
|
)
|
|
|
-add_compile_definitions(MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0)
|
|
|
+
|
|
|
+# TODO if cmake required version has been updated to >3.12.0, collapse this to the second case only
|
|
|
+if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
|
|
|
+ add_definitions(-DMINIZ_USE_UNALIGNED_LOADS_AND_STORES=0)
|
|
|
+else
|
|
|
+ add_compile_definitions(MINIZ_USE_UNALIGNED_LOADS_AND_STORES=0)
|
|
|
+endif
|
|
|
|
|
|
SOURCE_GROUP( ziplib FILES ${ziplib_SRCS} )
|
|
|
|