Skip to content

Commit

Permalink
Update build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gangliao committed Sep 28, 2016
1 parent 0072ef5 commit eaedef8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/build/build_from_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sudo apt-get install libgflags-dev
sudo apt-get install libgtest-dev
sudo pip install wheel
pushd /usr/src/gtest
cmake ..
cmake .
make
sudo cp *.a /usr/lib
popd
Expand Down Expand Up @@ -106,19 +106,19 @@ Here are some examples of cmake command with different options:
**only cpu**

```bash
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
```

**gpu**

```bash
cmake -DWITH_GPU=ON -DWITH_DOC=OFF ..
cmake -DWITH_GPU=ON -DWITH_DOC=OFF
```

**gpu with doc and swig**

```bash
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON ..
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON
```

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

```bash
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
```

**gpu**

```bash
cmake -DWITH_GPU=ON -DWITH_DOC=OFF ..
cmake -DWITH_GPU=ON -DWITH_DOC=OFF
```

**gpu with doc and swig**

```bash
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON ..
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON
```

Finally, you can download source code and build:
Expand Down

0 comments on commit eaedef8

Please sign in to comment.