Commit bbff557f8c63cd1b9405738f202b70e1067014ae
1 parent
4f65c9c4
Fix build against a standard zopfli install
Fix the logic to accept a top-level `zopfli.h` header, as that is the location used by upstream's build system.
Showing
2 changed files
with
2 additions
and
2 deletions
libqpdf/CMakeLists.txt
| ... | ... | @@ -192,7 +192,7 @@ if(NOT EXTERNAL_LIBS) |
| 192 | 192 | endif() |
| 193 | 193 | |
| 194 | 194 | if(ZOPFLI) |
| 195 | - find_path(ZOPFLI_H_PATH zopfli/zopfli.h) | |
| 195 | + find_path(ZOPFLI_H_PATH NAMES zopfli.h PATH_SUFFIXES zopfli) | |
| 196 | 196 | find_library(ZOPFLI_LIB_PATH NAMES zopfli) |
| 197 | 197 | if(ZOPFLI_H_PATH AND ZOPFLI_LIB_PATH) |
| 198 | 198 | list(APPEND dep_include_directories ${ZOPFLI_H_PATH}) | ... | ... |