summaryrefslogtreecommitdiff
path: root/compiler/cpp/README.md
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2015-05-16 22:40:17 +0200
committerRoger Meier <roger@apache.org>2015-05-16 22:40:17 +0200
commit880a2b32e5980ac95618392314521cc02967a344 (patch)
treeefc45dd3f6cdda176b340c19f128a1b970c34215 /compiler/cpp/README.md
parent4ead520841dce57532c45378fba10b3e033bbf54 (diff)
downloadthrift-880a2b32e5980ac95618392314521cc02967a344.tar.gz
doc: update compiler CMake build and update .gitignore
Diffstat (limited to 'compiler/cpp/README.md')
-rw-r--r--compiler/cpp/README.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/compiler/cpp/README.md b/compiler/cpp/README.md
index 2c0a67c1b..ea195c717 100644
--- a/compiler/cpp/README.md
+++ b/compiler/cpp/README.md
@@ -2,25 +2,25 @@
Use the following steps to build using cmake:
- mkdir build
- cd build
+ mkdir cmake-build
+ cd cmake-build
cmake ..
make
### Create an eclipse project
- mkdir build_ec && cd build_ec
+ mkdir cmake-ec && cd cmake-ec
cmake -G "Eclipse CDT4 - Unix Makefiles" ..
make
-Now open the folder build_ec using eclipse.
+Now open the folder cmake-ec using eclipse.
### Cross compile using mingw32 and generate a Windows Installer with CPack
- mkdir build_mingw32 && cd build_mingw32
- cmake -DCMAKE_TOOLCHAIN_FILE=../build/cmake/mingw32-toolchain.cmake ..
+ mkdir cmake-mingw32 && cd cmake-mingw32
+ cmake -DCMAKE_TOOLCHAIN_FILE=../build/cmake/mingw32-toolchain.cmake -DBUILD_COMPILER=ON -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF ..
cpack
## Build on windows
@@ -28,7 +28,7 @@ Now open the folder build_ec using eclipse.
### using Git Bash
Git Bash provides flex and bison, so you just need to do this:
- mkdir build_vs && cd build_vs
+ mkdir cmake-vs && cd cmake-vs
cmake -DWITH_SHARED_LIB=off ..
### using Win flex-bison
@@ -42,7 +42,7 @@ In order to build on windows with winflexbison a few additional steps are necess
* BISON_EXECUTABLE = C:/winbuild/win_bison.exe
4. Generate a Visual Studio project:
```
-mkdir build_vs && cd build_vs
+mkdir cmake-vs && cd cmake-vs
cmake -G "Visual Studio 12" -DWITH_SHARED_LIB=off ..
```
5. Now open the folder build_vs using Visual Studio 2013.