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

Radhika Sivaramakrishna radhika.sivaramakrishna at synarc.com
Tue, 13 Apr 2004 08:09:40 -0700


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C42168.E15A9C46
Content-Type: text/plain


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.

------_=_NextPart_001_01C42168.E15A9C46
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2656.87">
<TITLE>Setting release option in VC++</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>Hi Josh,</FONT>
<BR><FONT SIZE=3D2>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?</FONT></P>

<P><FONT SIZE=3D2>Or should I take care of the release issue when I =
finally build using VC++?</FONT>
<BR><FONT SIZE=3D2>Thanks</FONT>
<BR><FONT SIZE=3D2>Radhika</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Joshua Cates [<A =
HREF=3D"mailto:cates at sci.utah.edu">mailto:cates at sci.utah.edu</A>] =
</FONT>
<BR><FONT SIZE=3D2>Sent: Monday, March 29, 2004 10:35 AM</FONT>
<BR><FONT SIZE=3D2>To: Radhika Sivaramakrishna</FONT>
<BR><FONT SIZE=3D2>Cc: ITK</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [Insight-users] Computation time =
revisited</FONT>
</P>

<P><FONT SIZE=3D2>Hi,</FONT>
</P>

<P><FONT SIZE=3D2>Set the CMAKE_BUILD_TYPE type to Release in =
ccmake.&nbsp; Turn on the </FONT>
<BR><FONT SIZE=3D2>advanced options and make sure that the =
CMAKE_CXX_FLAGS_RELEASE and </FONT>
<BR><FONT SIZE=3D2>CMAKE_C_FLAGS_RELEASE are correct (i.e. -O3).&nbsp; =
I also recommend </FONT>
<BR><FONT SIZE=3D2>turning on CMAKE_VERBOSE_MAKEFILE so that you can =
see the exact command </FONT>
<BR><FONT SIZE=3D2>lines used to build.</FONT>
</P>

<P><FONT SIZE=3D2>Josh.</FONT>
</P>

<P><FONT SIZE=3D2>On Mon, 29 Mar 2004, Radhika Sivaramakrishna =
wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Hi Josh,</FONT>
<BR><FONT SIZE=3D2>&gt; How do I make the computer build optimized for =
a Linux platform?</FONT>
<BR><FONT SIZE=3D2>&gt; I have a Linux distribution of Redhat version =
8</FONT>
<BR><FONT SIZE=3D2>&gt; with GCC 3.3 Release 7. Is there something I =
can change</FONT>
<BR><FONT SIZE=3D2>&gt; when I do either ccmake or make to do get a =
&quot;release&quot; version</FONT>
<BR><FONT SIZE=3D2>&gt; that turns on all optimizations?</FONT>
<BR><FONT SIZE=3D2>&gt; Thanks</FONT>
<BR><FONT SIZE=3D2>&gt; Radhika</FONT>
<BR><FONT =
SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; =
-----------------------------------------------------&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; Confidentiality Notice. </FONT>
<BR><FONT SIZE=3D2>&gt; This email message is for the sole use of the =
intended recipient(s) and may</FONT>
<BR><FONT SIZE=3D2>&gt; contain confidential and privileged =
information. Any unauthorized review,</FONT>
<BR><FONT SIZE=3D2>&gt; use, disclosure or distribution is prohibited. =
If you are not the intended</FONT>
<BR><FONT SIZE=3D2>&gt; recipient, please contact the sender by reply =
email and destroy all copies</FONT>
<BR><FONT SIZE=3D2>&gt; of the original message. If you are the =
intended recipient, please be</FONT>
<BR><FONT SIZE=3D2>&gt; advised that the content of this message is =
subject to access, review and</FONT>
<BR><FONT SIZE=3D2>&gt; disclosure by the sender's Email System =
Administrator.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT =
SIZE=3D2>-----------------------------------------------------&nbsp; =
</FONT>
<BR><FONT SIZE=3D2>Confidentiality Notice. </FONT>
<BR><FONT SIZE=3D2>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.</FONT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C42168.E15A9C46--