你好!
 
If this feature is not directly supported by CMake, there is a work around.
 
Run CMake in an environment with Visual Studio installed and back up the cache files (folderCMakeFiles and file CMakeCache.txt).
Then copy these files on your computer which does not have Visual Studio installed. It should bypass the compiler tests etc...
I use it to generate XCode projects on a Windows XP OS and it works pretty well.
 
Sylvain
 
 
----- Original Message -----
From: Chen Li
Sent: Friday, November 03, 2006 3:59 AM
Subject: [CMake] generate VC project w/o VS installed.

HI, all.
 
How can I generate VC project and solution files on machine WITHOUT Visual Studio installed?
 
If I run "cmake .", I'll get error message like this:
 
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 6".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Could not find cmake module file:D:/chenli/tmp/a/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:D:/chenli/tmp/a/CMakeFiles/CMakeCXXCompiler.cmake
 
I've also tried using -G parameter to specify generator to "Visual Studio 8 2005", but no luck.
 
I'm really new to cmake. So if this question is basic, please forgive me. I've read FAQ and googled, still no answer :(
 
Thanks.
-Chen


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to