[CMake] One last try
Bill Hoffman
bill.hoffman at kitware.com
Mon Jun 21 09:12:49 EDT 2010
On 6/21/2010 3:02 AM, Gerry Weaver wrote:
> Hello All,
>
...
> 1. Is cmake supposed to support Visual Studio 2008 out of the box?
> 2. If not, is there support for Visual Studio 2010?
> 3. If not, is there a patch or fix for either of the above?
>
> cmake 2.8.1
> msvc 2008
> winxp sp4
> Nmake Makefiles
>
>
1. Yes, if VS 2008 is installed correctly.
First thing you should try is to build a file WITHOUT CMake:
-----foo.cxx--------
#include <iostream>
int main()
{
std::cout << "hello\n";
return 0;
}
------------------
Use this command line:
cl foo.cxx kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
If that works, then CMake should work when run FROM THAT SAME SHELL.
If that does not work, then you have not correctly installed the SDK and
compiler.
Are you using the Express or professional version of VS 2008?
If Express, you need to follow these instructions:
http://blogs.msdn.com/b/windowssdk/archive/2008/02/22/using-visual-c-2008-express-with-the-windows-sdk-detailed-version.aspx
Make sure you run CMake and your compiler from a shell that has all the
environment that cl needs to run.
Please post any errors exactly as you see them and include how you setup
the environment for the compiler.
-Bill
More information about the CMake
mailing list