[CMake] Missing CMAKE_CONFIGURATION_TYPES with project NONE on Windows
Paul Smith
paul at mad-scientist.net
Fri May 10 12:01:44 EDT 2013
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
> "Debug;Release;MinSizeRel;RelWithDebInfo"
> CACHE STRING "Supported configs")
> project(MyProject NONE)
> enable_language(C)
> enable_language(CXX)
I definitely did cache it (without that it has no effect). In my
super-simple test case (which looks like yours) it works fine.
But in my real project when I do it this way, I do see all the
configuration types listed in the CMakeCache.txt file, but I also get
all those error messages about "internal CMake variable not set" for
each of the MINSIZEREL build type variables. I double-checked and there
are no errors for the other types, including RelWithDebInfo.
This behaves identically with 2.8.11-rc4 BTW.
More information about the CMake
mailing list