cmake : fix deprecated option names not working

This commit is contained in:
slaren 2024-06-27 17:36:08 +02:00
parent 97877eb10b
commit 5c313f7bdf

View file

@ -86,7 +86,7 @@ set(GGML_CUDA_USE_GRAPHS ON)
function (llama_option_depr TYPE OLD NEW) function (llama_option_depr TYPE OLD NEW)
if (${OLD}) if (${OLD})
message(${TYPE} "${OLD} is deprecated and will be removed in the future.\nUse ${NEW} instead\n") message(${TYPE} "${OLD} is deprecated and will be removed in the future.\nUse ${NEW} instead\n")
set(${NEW} ON) set(${NEW} ON PARENT_SCOPE)
endif() endif()
endfunction() endfunction()