summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-07-20 20:00:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-07-20 20:00:52 (GMT)
commitc35bfaa0f7273db7ab7fed8e18e13d8fdb242511 (patch)
treef07fb84571ad4fd2b8527c6617a836af2ec8cc2f /CMakeLists.txt
parente1a4c02bac67f9420be0796712cc1da5985f7177 (diff)
parent6a24bdfc4e040af52e4aef95d5c934ecc836a8b8 (diff)
downloadCMake-c35bfaa0f7273db7ab7fed8e18e13d8fdb242511.zip
CMake-c35bfaa0f7273db7ab7fed8e18e13d8fdb242511.tar.gz
CMake-c35bfaa0f7273db7ab7fed8e18e13d8fdb242511.tar.bz2
Merge topic 'use-system-bzip2'
6a24bdf Optionally use system bzip2 library (#10932)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc1f4a9..b25f694 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,6 +69,8 @@ MACRO(CMAKE_HANDLE_SYSTEM_LIBRARIES)
CACHE BOOL "Use system-installed expat" FORCE)
SET(CMAKE_USE_SYSTEM_ZLIB "${CMAKE_USE_SYSTEM_LIBRARIES}"
CACHE BOOL "Use system-installed zlib" FORCE)
+ SET(CMAKE_USE_SYSTEM_BZIP2 "${CMAKE_USE_SYSTEM_LIBRARIES}"
+ CACHE BOOL "Use system-installed bzip2" FORCE)
ENDIF(CMAKE_USE_SYSTEM_LIBRARIES_USER)
# Optionally use system utility libraries.
@@ -78,9 +80,10 @@ MACRO(CMAKE_HANDLE_SYSTEM_LIBRARIES)
${CMAKE_USE_SYSTEM_LIBRARIES} "NOT CTEST_USE_XMLRPC" ON)
CMAKE_DEPENDENT_OPTION(CMAKE_USE_SYSTEM_ZLIB "Use system-installed zlib"
${CMAKE_USE_SYSTEM_LIBRARIES} "NOT CMAKE_USE_SYSTEM_CURL" ON)
+ OPTION(CMAKE_USE_SYSTEM_BZIP2 "Use system-installed bzip2" OFF)
# Mention to the user what system libraries are being used.
- FOREACH(util CURL EXPAT XMLRPC ZLIB)
+ FOREACH(util BZIP2 CURL EXPAT ZLIB)
IF(CMAKE_USE_SYSTEM_${util})
MESSAGE(STATUS "Using system-installed ${util}")
ENDIF(CMAKE_USE_SYSTEM_${util})