- Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathconfigure
executable file
·22 lines (19 loc) · 642 Bytes
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
DIR="$(cd"$( dirname "${BASH_SOURCE[0]}")"&&pwd)"
if [ "$1"='--help' ] || [ "$1"='-h' ];then
echo"usage: $0 -Dvariable=argument ..."
echo''
echo'Variables: '
options=`cat $DIR/CMake/Options.cmake | grep option | sed -e 's/^[ \t]*//'|
sed 's/\s*option(/ -D/; s/ "/=ON|OFF : /;
s/" / : Default: /; s/)$//'| sort`
options=" -DCMAKE_BUILD_TYPE=Debug|Release|RelWithDebInfo|MinSizeRel : Sets build type \
: Default: Release
$options"
if which column > /dev/null;then
options=`echo "$options"| column -t -s :`
fi
echo"$options"
exit 2
fi
cmake "$@".