mmp / pbrt-v2

Source code for the version of pbrt described in the second edition of "Physically Based Rendering"
http://pbrt.org
990 stars 343 forks source link

Modified prebuild process to automatically find bison and flex #49

Closed jrsmith17 closed 9 years ago

jrsmith17 commented 9 years ago

My motivation for this pull request came from when I cloned a clean git repo on my Windows 7 box using Visual Studio 2013. After fixing a few small issues that were documented online or through course websites (e.g. #include for std::min), I still was hitting a build error.

After digging a bit deeper, I discovered that the make file was assuming that I had cygwin installed and that bison and flex lived inside of cygwin's install directory. I decided that this was a fairly big assumption to make so I brushed up on batch and make to figure out a better alternative.

Things to note:

Please let me know if you have any questions on the questions or suggestions for how this can be improved. I hope this can be merged in soonish to save some other Windows users some time.

mmp commented 9 years ago

Thanks!!