mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
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:
parent
a9113e6f46
commit
efbd22a33f
1 changed files with 11 additions and 2 deletions
11
configure
vendored
11
configure
vendored
|
@ -14,8 +14,9 @@ use this configure script to access CMake equivalent functionality.\
|
||||||
usage="\
|
usage="\
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
Build Directory:
|
Build Options:
|
||||||
--builddir=DIR place build files in directory [build]
|
--builddir=DIR place build files in directory [build]
|
||||||
|
--generator=GENERATOR CMake generator to use (see cmake --help)
|
||||||
|
|
||||||
Installation Directories:
|
Installation Directories:
|
||||||
--prefix=PREFIX installation directory [/usr/local/bro]
|
--prefix=PREFIX installation directory [/usr/local/bro]
|
||||||
|
@ -94,6 +95,9 @@ while [ $# -ne 0 ]; do
|
||||||
--builddir=*)
|
--builddir=*)
|
||||||
builddir=$optarg
|
builddir=$optarg
|
||||||
;;
|
;;
|
||||||
|
--generator=*)
|
||||||
|
CMakeGenerator="$optarg"
|
||||||
|
;;
|
||||||
--prefix=*)
|
--prefix=*)
|
||||||
append_cache_entry CMAKE_INSTALL_PREFIX PATH $optarg
|
append_cache_entry CMAKE_INSTALL_PREFIX PATH $optarg
|
||||||
append_cache_entry BRO_ROOT_DIR PATH $optarg
|
append_cache_entry BRO_ROOT_DIR PATH $optarg
|
||||||
|
@ -186,4 +190,9 @@ fi
|
||||||
echo "Build Directory : $builddir"
|
echo "Build Directory : $builddir"
|
||||||
echo "Source Directory: $sourcedir"
|
echo "Source Directory: $sourcedir"
|
||||||
cd $builddir
|
cd $builddir
|
||||||
|
|
||||||
|
if [ -n "$CMakeGenerator" ]; then
|
||||||
|
cmake -G "$CMakeGenerator" $CMakeCacheEntries $sourcedir
|
||||||
|
else
|
||||||
cmake $CMakeCacheEntries $sourcedir
|
cmake $CMakeCacheEntries $sourcedir
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue