Unify usage of WITH_K7ZIP

We should either check its value or its definedness, not mix both.
Standardize on the former.

Fixes the build without LZMA support in KArchive.
This commit is contained in:
Volker Krause 2024-04-27 15:19:03 +02:00
parent 803d6e04d5
commit 2fa738d949
2 changed files with 3 additions and 1 deletions

View file

@ -24,6 +24,8 @@ endif ()
if (KArchive_HAVE_LZMA)
target_compile_definitions(okular_comicbook PRIVATE -DWITH_K7ZIP=1)
else()
target_compile_definitions(okular_comicbook PRIVATE -DWITH_K7ZIP=0)
endif()
########### autotests ###############

View file

@ -81,7 +81,7 @@ bool Document::open(const QString &fileName)
if (!processArchive()) {
return false;
}
#ifdef WITH_K7ZIP
#if WITH_K7ZIP
/**
* We have a 7z archive
*/