Skip to content

Commit eaedef8

Browse files
committed
Update build doc
1 parent 0072ef5 commit eaedef8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/build/build_from_source.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sudo apt-get install libgflags-dev
4848
sudo apt-get install libgtest-dev
4949
sudo pip install wheel
5050
pushd /usr/src/gtest
51-
cmake ..
51+
cmake .
5252
make
5353
sudo cp *.a /usr/lib
5454
popd
@@ -106,19 +106,19 @@ Here are some examples of cmake command with different options:
106106
**only cpu**
107107

108108
```bash
109-
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..
109+
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
110110
```
111111

112112
**gpu**
113113

114114
```bash
115-
cmake -DWITH_GPU=ON -DWITH_DOC=OFF ..
115+
cmake -DWITH_GPU=ON -DWITH_DOC=OFF
116116
```
117117

118118
**gpu with doc and swig**
119119

120120
```bash
121-
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON ..
121+
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON
122122
```
123123

124124
Finally, you can download source code and build:
@@ -232,19 +232,19 @@ Here are some examples of CMake command with different options:
232232
**only cpu**
233233

234234
```bash
235-
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..
235+
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
236236
```
237237

238238
**gpu**
239239

240240
```bash
241-
cmake -DWITH_GPU=ON -DWITH_DOC=OFF ..
241+
cmake -DWITH_GPU=ON -DWITH_DOC=OFF
242242
```
243243

244244
**gpu with doc and swig**
245245

246246
```bash
247-
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON ..
247+
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON
248248
```
249249

250250
Finally, you can download source code and build:

0 commit comments

Comments
 (0)