Closed rvkennedy closed 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!
Thanks - I think the "FILEPATH=" is what I'm missing!
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?