|
|
@ -567,8 +567,19 @@ endif( BZIP2_NEED_PREFIX )
|
|
|
|
if( WITH_LZMA )
|
|
|
|
if( WITH_LZMA )
|
|
|
|
pkg_search_module( LZMA liblzma )
|
|
|
|
pkg_search_module( LZMA liblzma )
|
|
|
|
if( NOT LZMA_FOUND )
|
|
|
|
if( NOT LZMA_FOUND )
|
|
|
|
tde_message_fatal( "LZMA are requested, but not found on your system" )
|
|
|
|
find_path( LZMA_INCLUDE_DIR lzma.h )
|
|
|
|
|
|
|
|
find_library( LZMA_LIBRARY lzma )
|
|
|
|
|
|
|
|
if( LZMA_LIBRARY AND LZMA_INCLUDE_DIR )
|
|
|
|
|
|
|
|
message( STATUS "Found LZMA: ${LZMA_LIBRARY}" )
|
|
|
|
|
|
|
|
set( LZMA_FOUND 1 )
|
|
|
|
|
|
|
|
set( LZMA_INCLUDE_DIRS ${LZMA_INCLUDE_DIR} )
|
|
|
|
|
|
|
|
set( LZMA_LIBRARIES lzma )
|
|
|
|
|
|
|
|
endif( LZMA_LIBRARY AND LZMA_INCLUDE_DIR )
|
|
|
|
endif( NOT LZMA_FOUND )
|
|
|
|
endif( NOT LZMA_FOUND )
|
|
|
|
|
|
|
|
check_library_exists( lzma lzma_code "" LZMA_CODE_FOUND )
|
|
|
|
|
|
|
|
if( NOT LZMA_FOUND OR NOT LZMA_CODE_FOUND )
|
|
|
|
|
|
|
|
tde_message_fatal( "LZMA is requested, but not found on your system" )
|
|
|
|
|
|
|
|
endif( NOT LZMA_FOUND OR NOT LZMA_CODE_FOUND )
|
|
|
|
set( HAVE_XZ_SUPPORT 1 )
|
|
|
|
set( HAVE_XZ_SUPPORT 1 )
|
|
|
|
endif( WITH_LZMA )
|
|
|
|
endif( WITH_LZMA )
|
|
|
|
|
|
|
|
|
|
|
|