Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Brad King
On 05/10/2013 11:14 AM, Brad King wrote: OTOH the Xcode generator just initializes all four configurations in EnableLanguage up front: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalXCodeGenerator.cxx;hb=v2.8.10.2#l182 I've now taught the VS generator to do the same:

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Paul Smith
On Tue, 2013-05-14 at 09:51 -0400, Brad King wrote: On 05/10/2013 11:14 AM, Brad King wrote: OTOH the Xcode generator just initializes all four configurations in EnableLanguage up front: http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalXCodeGenerator.cxx;hb=v2.8.10.2#l182

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Brad King
On 05/14/2013 10:28 AM, Paul Smith wrote: On Tue, 2013-05-14 at 09:51 -0400, Brad King wrote: On 05/10/2013 11:14 AM, Brad King wrote: OTOH the Xcode generator just initializes all four configurations in EnableLanguage up front:

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-14 Thread Andreas Mohr
On Tue, May 14, 2013 at 10:48:22AM -0400, cmake-requ...@cmake.org wrote: On 05/10/2013 11:14 AM, Brad King wrote: OTOH the Xcode generator just initializes all four configurations in EnableLanguage up front:

[CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
Hi all. I'm using cmake 2.8.10.2. I'm trying to introduce an alternative compiler into my build system for Linux, so as a first step I've separated my project statement from: project(MyProject C CXX) into: project(MyProject NONE) enable_language(C) enable_language(CXX) This works

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
Er... I take it back about being able to set the value by hand. If I do so I get a TON of errors, for each of the builtin variable variants for MinSizeRel and RelWithDebInfo (e.g., CMAKE_C_FLAGS_MINRELSIZE / Error required internal CMake variable not set). Now I'm not sure what to do. On Fri,

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Brad King
On 05/10/2013 10:31 AM, Paul Smith wrote: I've separated my project statement from: project(MyProject C CXX) into: project(MyProject NONE) enable_language(C) enable_language(CXX) on Windows (VS 10 Win64 generator):

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
On Fri, 2013-05-10 at 11:14 -0400, Brad King wrote: On 05/10/2013 10:31 AM, Paul Smith wrote: I've separated my project statement from: project(MyProject C CXX) into: project(MyProject NONE) enable_language(C) enable_language(CXX) on Windows (VS 10 Win64

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Brad King
On 05/10/2013 11:23 AM, Paul Smith wrote: Is there any way to work around this? I've tried setting CMAKE_CONFIGURATION_TYPES before project() Make sure you set it as a cache entry: set(CMAKE_CONFIGURATION_TYPES Debug;Release;MinSizeRel;RelWithDebInfo CACHE STRING Supported configs)

Re: [CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows

2013-05-10 Thread Paul Smith
On Fri, 2013-05-10 at 11:34 -0400, Brad King wrote: On 05/10/2013 11:23 AM, Paul Smith wrote: Is there any way to work around this? I've tried setting CMAKE_CONFIGURATION_TYPES before project() Make sure you set it as a cache entry: set(CMAKE_CONFIGURATION_TYPES