[CMake] ExternalProject BUILD_COMMAND and Visual Studio Express 2010
Macumber, Daniel
Daniel.Macumber at nrel.gov
Fri Nov 22 22:49:07 EST 2013
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/9b529bfd/attachment.htm>
More information about the CMake
mailing list