[CMake] MSVC turn off RelWithDebInfo and MinSizeRel

Torsten Martinsen tma at gatehouse.dk
Thu Dec 20 03:10:49 EST 2007


Unfortunately, this does not work. I just tried adding

    SET(CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebInfo")
at the top of my CMakeLists.txt, then deleted my build tree and ran cmake. The generated project files still contain Debug, Release, MinSizeRel and RelWithDebInfo.

-Torsten

________________________________
From: cmake-bounces+tma=gatehouse.dk at cmake.org [mailto:cmake-bounces+tma=gatehouse.dk at cmake.org] On Behalf Of David Cole
Sent: 20 December 2007 01:32
To: Jesse Corrington
Cc: cmake at cmake.org
Subject: Re: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel

SET(CMAKE_CONFIGURATION_TYPES "Debug;Release")

in your CMakeLists.txt. (Or just edit that value in CMakeSetup to change it in the cache.)

If you do it with a simple set in the CMakeLists.txt then you will not see that reflected in the CMakeSetup GUI, but it will be in effect at generation time and you should end up with sln/vcproj files with just the two types.

HTH,
David


On 12/19/07, Jesse Corrington <jesse.corrington at gmail.com<mailto:jesse.corrington at gmail.com>> wrote:
Is there anyway to have CMake not generate these two configurations, and just generate the standard release and debug configurations instead? Thanks.

________________________________
This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071220/9ae449ee/attachment.html


More information about the CMake mailing list