lol
1--- a/tiledb/sm/misc/generate_embedded_data_header.script.cmake
2+++ b/tiledb/sm/misc/generate_embedded_data_header.script.cmake
3@@ -40,11 +40,7 @@
4 string(MAKE_C_IDENTIFIER ${INPUT_FILENAME} INPUT_VARIABLE)
5
6 message(DEBUG "Compressing ${INPUT_FILE} to ${compressed_file}")
7-file(ARCHIVE_CREATE OUTPUT "${compressed_file}" PATHS ${INPUT_FILE} FORMAT raw COMPRESSION Zstd
8- # Level 12 was found to have the best balance between compression ratio and speed
9- # but is available in CMake 3.26+.
10- COMPRESSION_LEVEL 9
11-)
12+execute_process(COMMAND zstd -9 -c "${INPUT_FILE}" OUTPUT_FILE "${compressed_file}")
13 file(SIZE ${compressed_file} COMPRESSED_SIZE)
14 message(DEBUG "Compressed size: ${COMPRESSED_SIZE} bytes")