Add --build-dir as alias for --builddir

This alias makes it easier for tooling that deals with both Zeek and
Broker (which uses `--build-dir`). Also, it's one less quirk to remember
when working with both repositories.
This commit is contained in:
Dominik Charousset 2019-09-21 11:49:18 +02:00
parent 68bb0e21a3
commit e73bd60d04

4
configure vendored
View file

@ -18,6 +18,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
Build Options: Build Options:
--builddir=DIR place build files in directory [build] --builddir=DIR place build files in directory [build]
--build-dir=DIR alias for --builddir
--build-type=TYPE set CMake build type [RelWithDebInfo]: --build-type=TYPE set CMake build type [RelWithDebInfo]:
- Debug: optimizations off, debug symbols + flags - Debug: optimizations off, debug symbols + flags
- MinSizeRel: size optimizations, debugging off - MinSizeRel: size optimizations, debugging off
@ -171,6 +172,9 @@ while [ $# -ne 0 ]; do
--builddir=*) --builddir=*)
builddir=$optarg builddir=$optarg
;; ;;
--build-dir=*)
builddir=$optarg
;;
--build-type=*) --build-type=*)
append_cache_entry CMAKE_BUILD_TYPE STRING $optarg append_cache_entry CMAKE_BUILD_TYPE STRING $optarg