[CMake] ExternalProject BUILD_COMMAND and Visual Studio Express 2010

Macumber, Daniel Daniel.Macumber at nrel.gov
Fri Nov 22 22:54:17 EST 2013


I should also add that I am building in 64 bit mode and had to install the 7.1 SDK along with a compiler patch to get Visual Studio 2010 express working at all for 64 bit builds.

Dan

From: Macumber, Daniel
Sent: Friday, November 22, 2013 8:49 PM
To: cmake at cmake.org
Subject: ExternalProject BUILD_COMMAND and Visual Studio Express 2010

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?

Thanks a lot,
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131122/226e95a1/attachment.htm>


More information about the CMake mailing list