views:

66

answers:

1

I am using CMake 2.8 under Windows XP and want to generate a Visual Studio 2008 solution file which contains Release and Debug configurations for both Win32 and x64.

Can this be done by setting a CMake configuration variable in the CMakeLists.txt file?

+1  A: 

The CMakeLists is not where you specify the generator ( makefile, XCode, Visual Studio ) for a project. The generator is specified when a user runs CMake on your source.

RobertJMaynard
I know. But is there a way to make the Visual Studio generator produce a solution file which allows for cross-compiling for x64 under Windows XP?
sakra
No you need separate solution files and build directories for x32 and x64. Both of those will contain Release and Debug configurations.
RobertJMaynard