Skip to content

Commit

Permalink
CMake: correctly set default value of 'lzma' option when liblzma is d…
Browse files Browse the repository at this point in the history
…etected (fixes #482)
  • Loading branch information
rouault committed Oct 23, 2022
1 parent 777080c commit 58ad3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/LZMACodec.cmake
Expand Up @@ -27,7 +27,7 @@
# liblzma2
set(LZMA_SUPPORT FALSE)
find_package(LibLZMA)
option(lzma "use liblzma (required for LZMA2 compression)" ${LZMA_FOUND})
option(lzma "use liblzma (required for LZMA2 compression)" ${LIBLZMA_FOUND})
if (lzma AND LIBLZMA_FOUND)
set(LZMA_SUPPORT TRUE)
endif()

0 comments on commit 58ad3b5

Please sign in to comment.