CMake: Add XZ_ASSUME_RAM

This commit is contained in:
Lasse Collin 2024-06-15 18:07:04 +03:00
parent e1127e75cb
commit e8854b6bdc
1 changed files with 3 additions and 1 deletions

View File

@ -1790,7 +1790,9 @@ if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900)
target_link_libraries(xz PRIVATE liblzma libgnu)
target_compile_definitions(xz PRIVATE ASSUME_RAM=128)
set(XZ_ASSUME_RAM "128" CACHE STRING "Assume that the system has \
this many MiB of RAM if xz cannot determine the amount at runtime")
target_compile_definitions(xz PRIVATE "ASSUME_RAM=${XZ_ASSUME_RAM}")
if(WIN32)
# Add the Windows resource file for xz.exe.