File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 13
13
* .a
14
14
15
15
# Build dir
16
+ * -build *
16
17
build *
17
18
debug_build
18
19
release_build
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Default options
4
+
4
5
BUILD_DIR=" build"
5
6
CMAKE_GENERATOR=" Unix Makefiles"
6
7
BUILD_TYPE=" Release"
@@ -105,8 +106,12 @@ then
105
106
CMAKE_GENERATOR=" $CMAKE_GENERATOR_OVERRIDE "
106
107
fi
107
108
109
+ if [ -n " $BUILD_DIR_PREFIX " ]; then
110
+ BUILD_DIR=" ${BUILD_DIR_PREFIX} -${BUILD_DIR} "
111
+ fi
112
+
108
113
# Configure build
109
- echo " Configuring in $BUILD_DIR ... "
114
+ echo " Configuring in \" $BUILD_DIR \" "
110
115
echo " "
111
116
112
117
# Create build directory
@@ -116,8 +121,10 @@ then
116
121
fi
117
122
118
123
# Configure project
124
+
119
125
PREVIOUS_DIR=$( pwd)
120
- cd $BUILD_DIR
126
+
127
+ pushd $BUILD_DIR
121
128
echo cmake -G " $CMAKE_GENERATOR " " -DCMAKE_BUILD_TYPE=$BUILD_TYPE " $CMAKE_OPTIONS " $PREVIOUS_DIR "
122
129
cmake -G " $CMAKE_GENERATOR " " -DCMAKE_BUILD_TYPE=$BUILD_TYPE " $CMAKE_OPTIONS " $PREVIOUS_DIR "
123
130
if [ $? == 0 ]
130
137
echo " "
131
138
echo " Configuration failed." ;
132
139
fi
133
-
134
- cd " $PREVIOUS_DIR "
140
+ popd
You can’t perform that action at this time.
0 commit comments