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
13
configure
vendored
13
configure
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue