From 7eac77605d5b6250f33dee75f061889f95aa75f0 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 5 Nov 2009 15:54:19 -0500 Subject: [PATCH] Do not use external lzma library as it causes link errors on several machines and we don't need it. --- Utilities/cmlibarchive/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt index b049a4e45..2c231053d 100644 --- a/Utilities/cmlibarchive/CMakeLists.txt +++ b/Utilities/cmlibarchive/CMakeLists.txt @@ -166,7 +166,14 @@ MARK_AS_ADVANCED(CLEAR BZIP2_LIBRARIES) # # Find LZMA # -FIND_PACKAGE(LZMA) +IF(BUILD_ARCHIVE_WITHIN_CMAKE) + # do not depend on external library + # for internal CMake build + SET(LZMA_FOUND FALSE) +ELSE(BUILD_ARCHIVE_WITHIN_CMAKE) + FIND_PACKAGE(LZMA) +ENDIF(BUILD_ARCHIVE_WITHIN_CMAKE) + IF(LZMA_FOUND) SET(HAVE_LIBLZMA 1) SET(HAVE_LZMA_H 1)