summaryrefslogtreecommitdiff
path: root/compiler/cpp/README.md
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2015-05-15 12:01:38 +0200
committerRoger Meier <roger@apache.org>2015-05-15 15:44:22 +0200
commit86fded21b55573bb9240552a284f1f3d7255bd32 (patch)
tree6b7f0184cde4350fd73ca41c16940e9d792d58c4 /compiler/cpp/README.md
parent516e28a42d481725156d3d521d453c55b1dfd992 (diff)
downloadthrift-86fded21b55573bb9240552a284f1f3d7255bd32.tar.gz
THRIFT-2850 CMake: improve Windows support
use YY_NO_UNISTD_H and remove --wincompat
Diffstat (limited to 'compiler/cpp/README.md')
-rw-r--r--compiler/cpp/README.md27
1 files changed, 15 insertions, 12 deletions
diff --git a/compiler/cpp/README.md b/compiler/cpp/README.md
index fdc6451dc..b4a159f1e 100644
--- a/compiler/cpp/README.md
+++ b/compiler/cpp/README.md
@@ -25,24 +25,27 @@ Now open the folder build_ec using eclipse.
## Build on windows
-In order to build on windows a few additional steps are necessary:
+### using Git Bash
+Git Bash provides flex and bison, so you just need to do this:
+
+ mkdir build_vs && cd build_vs
+ cmake -DWITH_SHARED_LIB=off ..
+
+### using Win flex-bison
+
+In order to build on windows with winflexbison a few additional steps are necessary:
1. Download winflexbison from http://sourceforge.net/projects/winflexbison/
2. Extract the winflex bison files to for e.g. C:\winflexbison
3. Make the CMake variables point to the correct binaries.
* FLEX_EXECUTABLE = C:/winbuild/win_flex.exe
* BISON_EXECUTABLE = C:/winbuild/win_bison.exe
-
-
-### Create a Visual Studio project
-
- mkdir build_vs && cd build_vs
- cmake -G "Visual Studio 12" ..
-
-Now open the folder build_vs using Visual Studio 2013.
-
-
-
+4. Generate a Visual Studio project:
+```
+mkdir build_vs && cd build_vs
+cmake -G "Visual Studio 12" -DWITH_SHARED_LIB=off ..
+```
+5. Now open the folder build_vs using Visual Studio 2013.
# Building the Thrift IDL compiler in Windows