[CMake] windows command to compile

John Drescher drescherjm at gmail.com
Mon Aug 25 10:03:13 EDT 2008


On Mon, Aug 25, 2008 at 9:57 AM, Ingrid Kemgoum
<ingrid.kemgoum at gmail.com> wrote:
> my generator is visual 8 2005.
> i check for devenv on the net and never get a devenv.exe or .com like
> described in FAQs or error report.
> i only got a .zip with a batch file (.bat) and a devenv.jar
>
> is it normal?
>
If you have Visual Studio 2005 installed then you have devenv but it
will not be in the default path. To get around this I use the
%VSINSTALLDIR% which should be defined on your system. I do this all
the time using batch scripts. Here is an example I pulled out of one
of my scripts:

"%VSINSTALLDIR%"\devenv ..\src\WINSDKUtil.sln /build debug
"%VSINSTALLDIR%"\devenv ..\src\WINSDKUtil.sln /build release
"%VSINSTALLDIR%"\devenv ..\src\WINSDKUtil.sln /build debugrelease

John


More information about the CMake mailing list