Skip to content

Commit

Permalink
Fixed discovery of LZMA libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Oct 21, 2020
1 parent 7046fb0 commit 8fb225d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ INCLUDE_DIRECTORIES (${ZLIB_INCLUDE_DIRS})
ENDIF (ENABLE_ZLIB_COMPRESSION)

IF (ENABLE_LZMA_COMPRESSION)
FIND_PACKAGE (LZMA REQUIRED)
INCLUDE_DIRECTORIES (${LZMA_INCLUDE_DIR})
FIND_PACKAGE (LibLZMA REQUIRED)
INCLUDE_DIRECTORIES (${LIBLZMA_INCLUDE_DIRS})
ENDIF (ENABLE_LZMA_COMPRESSION)

IF (ENABLE_BZIP2_COMPRESSION)
Expand Down Expand Up @@ -415,7 +415,7 @@ IF (ENABLE_ZLIB_COMPRESSION)
SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${ZLIB_LIBRARY})
ENDIF (ENABLE_ZLIB_COMPRESSION)
IF (ENABLE_LZMA_COMPRESSION)
SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${LZMA_LIBRARY})
SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${LIBLZMA_LIBRARIES})
ENDIF (ENABLE_LZMA_COMPRESSION)
IF (ENABLE_BZIP2_COMPRESSION)
SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${BZIP2_LIBRARIES})
Expand Down

0 comments on commit 8fb225d

Please sign in to comment.