[CMake] external tools in visual studio

th.tom at gmx.de th.tom at gmx.de
Fri Sep 18 09:21:33 EDT 2009


> 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


More information about the CMake mailing list