summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-05 20:54:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-05 20:54:19 (GMT)
commit7eac77605d5b6250f33dee75f061889f95aa75f0 (patch)
tree572e10e4c268edf8e9a82027c5f82c15a9e340c1 /Utilities
parentac3f37e0b6178e6db626c0c46d5405a2182a4511 (diff)
downloadCMake-7eac77605d5b6250f33dee75f061889f95aa75f0.zip
CMake-7eac77605d5b6250f33dee75f061889f95aa75f0.tar.gz
CMake-7eac77605d5b6250f33dee75f061889f95aa75f0.tar.bz2
Do not use external lzma library as it causes link errors on several machines and we don't need it.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index b049a4e..2c23105 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)