[Insight-users] Re: Setting release option in VC++

Joshua Cates cates at sci.utah.edu
Tue, 13 Apr 2004 09:34:35 -0600 (MDT)


Hi,

For VC++ you select the build type when compiling with Visual Studio.  
CMake will configure both a release and debug build.  You can change the 
CMAKE_CXX_FLAGS_RELEASE to modify the release or debug configuration.

Josh.

On Tue, 13 Apr 2004, Radhika Sivaramakrishna wrote:

> 
> Hi Josh,
> Could you also let me know how to ensure a release build using VC++. I could
> not locate the flag CMAKE_BUILD_TYPE when using CMake. Also I find that the
> CMAKE_CXX_FLAGS_RELEASE is set to /MD /02. Should this be changed to /MD
> /03?
> Or should I take care of the release issue when I finally build using VC++?
> Thanks
> Radhika
> 
> -----Original Message-----
> From: Joshua Cates [mailto:cates at sci.utah.edu] 
> Sent: Monday, March 29, 2004 10:35 AM
> To: Radhika Sivaramakrishna
> Cc: ITK
> Subject: Re: [Insight-users] Computation time revisited
> 
> Hi,
> 
> Set the CMAKE_BUILD_TYPE type to Release in ccmake.  Turn on the 
> advanced options and make sure that the CMAKE_CXX_FLAGS_RELEASE and 
> CMAKE_C_FLAGS_RELEASE are correct (i.e. -O3).  I also recommend 
> turning on CMAKE_VERBOSE_MAKEFILE so that you can see the exact command 
> lines used to build.
> 
> Josh.
> 
> On Mon, 29 Mar 2004, Radhika Sivaramakrishna wrote:
> 
> > Hi Josh,
> > How do I make the computer build optimized for a Linux platform?
> > I have a Linux distribution of Redhat version 8
> > with GCC 3.3 Release 7. Is there something I can change
> > when I do either ccmake or make to do get a "release" version
> > that turns on all optimizations?
> > Thanks
> > Radhika
> >                                                      
> > -----------------------------------------------------  
> > Confidentiality Notice. 
> > This email message is for the sole use of the intended recipient(s) and
> may
> > contain confidential and privileged information. Any unauthorized review,
> > use, disclosure or distribution is prohibited. If you are not the intended
> > recipient, please contact the sender by reply email and destroy all copies
> > of the original message. If you are the intended recipient, please be
> > advised that the content of this message is subject to access, review and
> > disclosure by the sender's Email System Administrator.
> > 
>                                                      
> -----------------------------------------------------  
> Confidentiality Notice. 
> This email message is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. Any unauthorized review,
> use, disclosure or distribution is prohibited. If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message. If you are the intended recipient, please be
> advised that the content of this message is subject to access, review and
> disclosure by the sender's Email System Administrator.
>