On Fri, Nov 22, 2013 at 08:49:07PM -0700, Macumber, Daniel wrote:
> Our project is using ExternalProject_Add to build Ruby.  Our
> BUILD_COMMAND on Windows is "cd
> ${CMAKE_BINARY_DIR}/Ruby-prefix/src/Ruby-build && nmake".  This
> works using the professional versions of Visual Studio.  However,
> using Visual Studio Express 2010 I get an error that nmake is not a
> known program.  Nmake is not in my system path but is found when
> running the Visual Studio command prompt.  How can I get the
> ExternalProject build command to use the correct environment?
> Should I put a call to vcvarsall.bat in the command line?  Is there
> a CMake variable that has the path to that?

I would expect that you need to put the folder where nmake.exe lives
in the %PATH%, the easiest way of achieving that is probably to use
vcvarsall.bat.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: [email protected]   jabber: [email protected]
twitter: magthe               http://therning.org/magnus

You do not examine legislation in the light of the benefits it will
convey if properly administered, but in the light of the wrongs it
would do and the harms it would cause if improperly administered.
     -- Lyndon Johnson

Attachment: pgpwnEMwzTB4V.pgp
Description: PGP signature

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to