From 5ea3a4b979da6af5ccf42f2840cccee91be0630e Mon Sep 17 00:00:00 2001 From: xiota Date: Tue, 28 May 2024 06:45:49 +0000 Subject: [PATCH] AboutThisBuild: Make libjxl status strings less confusing --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18b4ef04f..7696270ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -569,14 +569,16 @@ if(JXL_FOUND) list(APPEND JXL_LIBRARIES ${JXLTHREADS_LIBRARIES}) else() message(STATUS " JXL support disabled by WITH_JXL = ${WITH_JXL}") - set(JXL_VERSION "Disabled") + string(APPEND JXL_VERSION " - Disabled") set(JXL_INCLUDE_DIRS "") set(JXL_LIBRARIES "") set(JXLTHREADS_INCLUDE_DIRS "") set(JXLTHREADS_LIBRARIES "") endif() +elseif(WITH_JXL STREQUAL "AUTO") + set(JXL_VERSION "Disabled, Auto") else() - set(JXL_VERSION "Not installed") + set(JXL_VERSION "Disabled") endif() # Check for libcanberra-gtk3 (sound events on Linux):