diff options
author | James Lee <princetemp@outlook.com> | 2018-03-20 05:34:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-22 14:52:16 (GMT) |
commit | 850cfe3a3b58db3bf76e5d5d6a2583f3849ab3e8 (patch) | |
tree | bf050cc4729a3d0a7a17e707958652e221394181 /bootstrap | |
parent | 018946aaafc9ada6852d55cb8034faf0f4c1afbc (diff) | |
download | CMake-850cfe3a3b58db3bf76e5d5d6a2583f3849ab3e8.zip CMake-850cfe3a3b58db3bf76e5d5d6a2583f3849ab3e8.tar.gz CMake-850cfe3a3b58db3bf76e5d5d6a2583f3849ab3e8.tar.bz2 |
bootstrap: Add support for VAR=value options to specify tools and flags
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -821,6 +821,11 @@ while test $# != 0; do --version) cmake_version_display ; exit 2 ;; --verbose) cmake_verbose=TRUE ;; --enable-ccache) cmake_ccache_enabled=TRUE ;; + CC=*) CC=`cmake_arg "$1"` ;; + CXX=*) CXX=`cmake_arg "$1"` ;; + CFLAGS=*) CFLAGS=`cmake_arg "$1"` ;; + CXXFLAGS=*) CXXFLAGS=`cmake_arg "$1"` ;; + LDFLAGS=*) LDFLAGS=`cmake_arg "$1"` ;; --) shift; break ;; *) die "Unknown option: $1" ;; esac @@ -1535,6 +1540,9 @@ MAKE="${cmake_make_processor}" export CC export CXX export MAKE +export CFLAGS +export CXXFLAGS +export LDFLAGS # Run bootstrap CMake to configure real CMake cmake_options="-DCMAKE_BOOTSTRAP=1" |