tlorach / nvFX

Generic Effect system for Graphic API's (OpenGL and DirectX)
280 stars 53 forks source link

Trying to set Flex/Bison location #5

Closed rvkennedy closed 10 years ago

rvkennedy commented 10 years ago

I have win_flex.exe and win_bison.exe. I've tried setting the paths to these as environment variables (set FLEX_EXECUTABLE=C:\Dropbox\Programs\win_flex_bison\win_flex.exe), as lines at the top of CmakeLists.txt (SET(BISON_EXECUTABLE "C:/Dropbox/Programs/win_flex_bison/win_bison.exe" CACHE PATHFILE "bison")) and as lines in the main body of CmakeLists.txt (as above). In each case, we get the same error as if they were unset. What is the correct way to do this?

dschoerk commented 10 years ago

my working way of setting environment variables is through the cmake-gui you could also edit your CMakeCache.txt i think

entries in my cache file:

//path to the bison executable BISON_EXECUTABLE:FILEPATH=E:/Programming/GnuWin32/bin/bison.exe

//path to the flex executable FLEX_EXECUTABLE:FILEPATH=E:/Programming/GnuWin32/bin/flex.exe

good luck!

rvkennedy commented 10 years ago

Thanks - I think the "FILEPATH=" is what I'm missing!