diff options
author | Brad King <brad.king@kitware.com> | 2006-10-19 19:17:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-19 19:17:58 (GMT) |
commit | 6ff05e3946b856f18399257f21ed0488a0ed3dd5 (patch) | |
tree | afdc50238f520dd99ce06d8c8bf17226e5b92ddb /bootstrap | |
parent | f91b3c1daaeacd79b36644ce9a2610b31e9d964c (diff) | |
download | CMake-6ff05e3946b856f18399257f21ed0488a0ed3dd5.zip CMake-6ff05e3946b856f18399257f21ed0488a0ed3dd5.tar.gz CMake-6ff05e3946b856f18399257f21ed0488a0ed3dd5.tar.bz2 |
ENH: Adding option to use system-installed third-party libraries. This addresses bug#3653.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -36,6 +36,7 @@ cmake_data_dir="/share/cmake-${cmake_version}" cmake_doc_dir="/doc/cmake-${cmake_version}" cmake_man_dir="/man" cmake_init_file="" +cmake_bootstrap_system_libs="" # Determine whether this is a MinGW environment. if echo "${cmake_system}" | grep MINGW >/dev/null 2>&1; then @@ -205,6 +206,10 @@ Configuration: --parallel=n bootstrap cmake in parallel, where n is number of nodes [1] --init=FILE use FILE for cmake initialization + --system-libs use system-installed third-party libraries + (for use only by package maintainers) + --no-system-libs use cmake-provided third-party libraries + (default) Directory and file names: --prefix=PREFIX install files in tree rooted at PREFIX @@ -444,6 +449,12 @@ for a in "$@"; do if echo $a | grep "^--init=" > /dev/null 2> /dev/null; then cmake_init_file=`echo $a | sed "s/^--init=//"` fi + if echo $a | grep "^--system-libs" > /dev/null 2> /dev/null; then + cmake_bootstrap_system_libs="-DCMAKE_USE_SYSTEM_LIBRARIES=1" + fi + if echo $a | grep "^--no-system-libs" > /dev/null 2> /dev/null; then + cmake_bootstrap_system_libs="-DCMAKE_USE_SYSTEM_LIBRARIES=0" + fi if echo $a | grep "^--help" > /dev/null 2> /dev/null; then cmake_usage fi @@ -1287,7 +1298,7 @@ export CXX export MAKE # Run bootstrap CMake to configure real CMake -"${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}" "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake" "-G${cmake_bootstrap_generator}" +"${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}" "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake" "-G${cmake_bootstrap_generator}" ${cmake_bootstrap_system_libs} RES=$? if [ "${RES}" -ne "0" ]; then cmake_error 11 "Problem while running initial CMake" |