f4417bf7e8
CMake 3.18 introduced the file(ARCHIVE_CREATE) API that we use with COMPRESSION Zstd for compressing corelib's mimedatabase. It's possible to build CMake without proper zstd support, and we have encountered such builds in the wild where the file(ARCHIVE_CREATE) call crashes. Add a configure test to determine whether CMake properly supports the Zstd compression method. Fixes: QTBUG-89108 Change-Id: I37e389c878845162b6f18457984d4f73a265b604 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
6 lines
123 B
CMake
6 lines
123 B
CMake
file(ARCHIVE_CREATE
|
|
OUTPUT cmake_zstd.zstd
|
|
PATHS "${CMAKE_CURRENT_LIST_FILE}"
|
|
FORMAT raw
|
|
COMPRESSION Zstd)
|