From dc80a9086df23892adc55af668433d581d72cca2 Mon Sep 17 00:00:00 2001 From: Helio Castro Date: Thu, 30 Apr 2009 20:12:45 +0000 Subject: - We are using the new XZ codebase instead of old codebase. Can be found in http://tukaani.org/xz/ svn path=/trunk/KDE/kdelibs/; revision=961856 --- modules/FindLibLZMA.cmake | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'modules/FindLibLZMA.cmake') diff --git a/modules/FindLibLZMA.cmake b/modules/FindLibLZMA.cmake index f63de69c..1a341b28 100644 --- a/modules/FindLibLZMA.cmake +++ b/modules/FindLibLZMA.cmake @@ -11,23 +11,22 @@ # Copyright (c) 2008, Per Øyvind Karlsen, # Copyright (c) 2009, Alexander Neundorf, +# Copyright (c) 2009, Helio Chissini de Castro, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -FIND_PATH(LIBLZMA_INCLUDE_DIR lzmadec.h ) -FIND_LIBRARY(LIBLZMA_LIBRARY lzmadec) +FIND_PATH(LIBLZMA_INCLUDE_DIR lzma.h ) +FIND_LIBRARY(LIBLZMA_LIBRARY lzma) SET(LIBLZMA_LIBRARIES ${LIBLZMA_LIBRARY}) SET(LIBLZMA_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIR}) -# what's up with the following tests ? -# I downloaded, built and installed the lzma-4.32.7 source package directly -# from http://tukaani.org/lzma/download and they resulting library doesn't have -# these symbols. Also "grep -R auto_decoder *" gives no results. -# Where should they come frome ? Alex +# We're using new code known now as XZ, even library still been called LZMA +# it can be found in http://tukaani.org/xz/ +# Avoid using old codebase IF (LIBLZMA_LIBRARIES) INCLUDE(CheckLibraryExists) CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_auto_decoder "" LIBLZMA_HAS_AUTO_DECODER) -- cgit v1.2.1