Allow CMake generators to pass through configure

The default generator is Unix Makefiles for most platforms, but this
lets the builder easily select a different build framework depending
on their platform (e.g. Xcode, CodeBlocks, Eclipse ...)
This commit is contained in:
Jon Siwek 2010-12-02 14:23:20 -06:00
parent a9113e6f46
commit efbd22a33f

13
configure vendored
View file

@ -14,8 +14,9 @@ use this configure script to access CMake equivalent functionality.\
usage="\
Usage: $0 [OPTION]... [VAR=VALUE]...
Build Directory:
Build Options:
--builddir=DIR place build files in directory [build]
--generator=GENERATOR CMake generator to use (see cmake --help)
Installation Directories:
--prefix=PREFIX installation directory [/usr/local/bro]
@ -94,6 +95,9 @@ while [ $# -ne 0 ]; do
--builddir=*)
builddir=$optarg
;;
--generator=*)
CMakeGenerator="$optarg"
;;
--prefix=*)
append_cache_entry CMAKE_INSTALL_PREFIX PATH $optarg
append_cache_entry BRO_ROOT_DIR PATH $optarg
@ -186,4 +190,9 @@ fi
echo "Build Directory : $builddir"
echo "Source Directory: $sourcedir"
cd $builddir
cmake $CMakeCacheEntries $sourcedir
if [ -n "$CMakeGenerator" ]; then
cmake -G "$CMakeGenerator" $CMakeCacheEntries $sourcedir
else
cmake $CMakeCacheEntries $sourcedir
fi