[CMake] Confikgurations and Platforms in Visual Studio 8
Neal Meyer
nmeyer at dottedzebra.com
Thu Sep 27 19:19:28 EDT 2007
Josef,
I think you want to add a build type
http://www.cmake.org/Wiki/CMake_Useful_Variables see the comments under
CMAKE_BUILD_TYPE.
I've used the following to remove the extra configurations that cmake makes
by default that I didn't want in my project files.
SET( CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Only do Release
and Debug" FORCE )
MARK_AS_ADVANCED(CMAKE_CONFIGURATION_TYPES)
-Neal
On 9/27/07, Josef Karthauser <joe.karthauser at geomerics.com> wrote:
>
>
>
> > > > Also, does cmake have an idea of platforms, or does it assume
> Win32?
> > >
> > > CMake does not assume anything about Win32 or any other platform.
> >
> > What I mean is, in vcproj files combine the configuration and the
> > platform
> > labels to form a compilation target, i.e Release|Win32, Debug|x64.
> >
> > How do I go about specifying the platform parts of these with cmake?
> > For example, I say I have 'Release', 'Debug', and 'Special'
> > configurations, and Win32 and x64 platforms. Now suppose that I only
> > support the following configurations:
> >
> > Release|Win32
> > Release|x64
> > Debug|Win32
> > Debug|x64
> > Special|x64
> >
> > How do I go about specifying that to cmake?
> >
>
> Answering my own question, after a bit of research, it appears that
> cmake doesn't natively deal with cross-platform building for Visual
> Studio Projects. Instead it tests to see whether to generate Win32 or
> x64 project file configurations.
>
> In the environment we've got, we want to build Win32, Xbox 360 and
> Playstation 3 binaries, all from a Win32 box. I wonder what the best
> way to tweak cmake to do this is. My first thoughts are to do away with
> Visual Studio altogether, as its vcproj files are pretty hard coded into
> cmake. Instead I'm playing with using a traditional make, but I still
> need vcproj "external make" files, as the developers are using visual
> studio.
>
> I've ordered the book - perhaps I'll get some hints from there.
>
> I'd be interested in hearing from anyone who is already doing this kind
> of thing.
> Joe
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070927/eacb192b/attachment.htm
More information about the CMake
mailing list