[CMake] [VS gen] Multiple configurations code
John Drescher
drescherjm at gmail.com
Mon Jul 26 15:00:12 EDT 2010
On Mon, Jul 26, 2010 at 2:57 PM, Olaf van der Spek <olafvdspek at gmail.com> wrote:
> On Mon, Jul 26, 2010 at 7:07 PM, David Cole <david.cole at kitware.com> wrote:
>> grep for CMAKE_CONFIGURATION_TYPES
>
> I'm quite sure adding more configuration types here won't suffice.
>
> IF(NOT CMAKE_NO_BUILD_TYPE AND CMAKE_GENERATOR MATCHES "Visual Studio")
> SET (CMAKE_NO_BUILD_TYPE 1)
> SET (CMAKE_CONFIGURATION_TYPES
> "Debug;Release;MinSizeRel;RelWithDebInfo" CACHE STRING
> "Semicolon separated list of supported configuration types, only
> supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything else
> will be ignored.")
> MARK_AS_ADVANCED(CMAKE_CONFIGURATION_TYPES)
> ENDIF(NOT CMAKE_NO_BUILD_TYPE AND CMAKE_GENERATOR MATCHES "Visual Studio")
>
You need to add variables and such. I believe that is done in windows-cl.cmake
John
More information about the CMake
mailing list