mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-01 05:33:33 +00:00
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:
parent
803d6e04d5
commit
2fa738d949
|
@ -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 ###############
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue