> We use CMake + Flex/Bison for our project > https://savannah.nongnu.org/projects/certi > (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html > but there is not much to discover) > > We did face the same "m4 not found" trouble and it has > been "fixed" by putting > C:/Programme/GnuWin32/bin > in the system PATH and restart (at least) Visual Studio.
Does that work for you? Maybe I've done something wrong here. I'll try that again on monday. > > Setting the environment path does not help > > (as visual studio does not care for these settings). > > That's true the culprit here is bison.exe which assume m4.exe is in the > path. > > our (primitive) FindLexYacc.cmake is here: > http://cvs.savannah.gnu.org/viewvc/certi/scripts/FindLexYacc.cmake?root=certi&view=markup > > the CUSTOM command and others concerning Lex/Yacc handling may > be found in the following CMakeLists.txt > http://cvs.savannah.gnu.org/viewvc/certi/libCERTI/CMakeLists.txt?root=certi&view=markup > > those 2 are not what I would call "pure academic" examples but they do > work > for us on several Windows box (200x, XP, Vista, ...) with different IDEs > (Visual, Code::Blocks, ...) > My *.cmake does look very similar to yours, so I believe, it's the PATH, that is not set correctly. Thanks for your answer! Hope I'll get it to work soon. - tom _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
