<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.2">
<TITLE>Cmake variable indicating ctest dashboard build (like DART_ROOT)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Cmake list:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">In the VXL project we use the cmake variable DART_ROOT to determine whether the build is being done for the dashboard.&nbsp; But if ctest is used, DART_ROOT is not set.&nbsp; Is there a different variable that should be used for this purpose that works for both the old tcl-Dart1 and new ctest?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here is a typical current VXL use of DART_ROOT ...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># Default the dashboard builds to &quot;YES&quot; so that</FONT>

<BR><FONT SIZE=2 FACE="Arial"># we have some clients that try to compile vgui</FONT>

<BR><FONT SIZE=2 FACE="Arial">IF( DART_ROOT )</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; OPTION( BUILD_VGUI &quot;Build VGUI&quot; &quot;YES&quot; )</FONT>

<BR><FONT SIZE=2 FACE="Arial">ELSE( DART_ROOT )</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; OPTION( BUILD_VGUI &quot;Build VGUI&quot; &quot;NO&quot; )</FONT>

<BR><FONT SIZE=2 FACE="Arial">ENDIF( DART_ROOT )</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&#8230; and I really just want to do the following in the right way ...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># Option to specify whether this is a build for the dashboard</FONT>

<BR><FONT SIZE=2 FACE="Arial">#&nbsp; - If Dart (TCL) is being used for the dashboard build, DART_ROOT</FONT>

<BR><FONT SIZE=2 FACE="Arial">#&nbsp;&nbsp;&nbsp; will be set.</FONT>

<BR><FONT SIZE=2 FACE="Arial">#&nbsp; - If CTest is being used for a dashboard build, set</FONT>

<BR><FONT SIZE=2 FACE="Arial">#&nbsp;&nbsp;&nbsp; BUILD_FOR_VXL_DASHBOARD to YES using SET (CTEST_INITIAL_CACHE ...)</FONT>

<BR><FONT SIZE=2 FACE="Arial">#&nbsp;&nbsp;&nbsp; in the CTest script (until we find a better method right here).</FONT>

<BR><FONT SIZE=2 FACE="Arial">IF( DART_ROOT )</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; OPTION( BUILD_FOR_VXL_DASHBOARD &quot;Is this a build for the dashboard?&quot; YES )</FONT>

<BR><FONT SIZE=2 FACE="Arial">ELSE( DART_ROOT )</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; OPTION( BUILD_FOR_VXL_DASHBOARD &quot;Is this a build for the dashboard?&quot; NO )</FONT>

<BR><FONT SIZE=2 FACE="Arial">ENDIF( DART_ROOT )</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Fred</FONT>
</P>

</BODY>
</HTML>