<div dir="ltr">Short version:<div><br></div><div>Does anyone have an elegant way to launch the visual studio command line from within CMake?</div><div><br></div><div>James Bigler asked essentially this question back in March of 2011.  David responded with a link to a Blog entry, but I haven&#39;t figured out how to translate that into something that works.</div>
<div><br></div><div>The &#39;vcvarsall.bat&#39; program that comes with Visual Studio will launch the command line with the full environment set.</div><div><br></div><div>Once I find vcvarsall, I then need to launch something in it -- and pass parameters to that thing.  All from within ExternalProject_Add.  For now, one step at a time...</div>
<div><br></div><div>Long version:</div><div><br></div><div>I&#39;m trying to encapsulate the build of FLTK as an ExternalProject in CMake.  One way or the other, it needs to work for Visual Studio on Windows, and gcc and llvm on Linux/MacOS.</div>
<div><br></div><div>Although FLTK has a CMake build system, it is currently unmaintained (broken on at least some platforms), and none of the core FLTK developers use it, so I don&#39;t see this situation improving.</div>
<div><br></div><div>I&#39;ve got a ./configure based system working for Linux/MacOS.</div><div><br></div><div>One of the FLTK developers maintains an unofficial Makefile setup for FLKT/Visual Studio that must be run from the Visual Studio command prompt.  Hence my question...</div>
<div><br></div><div><a href="http://seriss.com/people/erco/fltk/tmp/vsnet-makefiles.0.85.zip">http://seriss.com/people/erco/fltk/tmp/vsnet-makefiles.0.85.zip</a><br></div><div><br></div><div>Thanks for any help,</div><div>
<br></div><div>Rob</div><div><br></div><div><br></div><div><br></div></div>