Add error code to returns

Fix conditional libjxl compilation
This commit is contained in:
xiota
2021-09-23 13:34:48 -07:00
parent dfc82c403c
commit dd01cc110b
9 changed files with 31 additions and 26 deletions

View File

@@ -553,8 +553,8 @@ if(WITH_SYSTEM_KLT)
endif()
pkg_check_modules(JXL IMPORTED_TARGET libjxl libjxl_threads)
if(JXL)
set(JXL_LIBRARIES jxl jxl_threads)
if(JXL_FOUND)
add_definitions(-DLIBJXL)
endif()
# Check for libcanberra-gtk3 (sound events on Linux):