<!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. But if ctest is used, DART_ROOT is not set. 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 "YES" 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"> OPTION( BUILD_VGUI "Build VGUI" "YES" )</FONT>
<BR><FONT SIZE=2 FACE="Arial">ELSE( DART_ROOT )</FONT>
<BR><FONT SIZE=2 FACE="Arial"> OPTION( BUILD_VGUI "Build VGUI" "NO" )</FONT>
<BR><FONT SIZE=2 FACE="Arial">ENDIF( DART_ROOT )</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">… 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"># - If Dart (TCL) is being used for the dashboard build, DART_ROOT</FONT>
<BR><FONT SIZE=2 FACE="Arial"># will be set.</FONT>
<BR><FONT SIZE=2 FACE="Arial"># - If CTest is being used for a dashboard build, set</FONT>
<BR><FONT SIZE=2 FACE="Arial"># BUILD_FOR_VXL_DASHBOARD to YES using SET (CTEST_INITIAL_CACHE ...)</FONT>
<BR><FONT SIZE=2 FACE="Arial"># 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"> OPTION( BUILD_FOR_VXL_DASHBOARD "Is this a build for the dashboard?" YES )</FONT>
<BR><FONT SIZE=2 FACE="Arial">ELSE( DART_ROOT )</FONT>
<BR><FONT SIZE=2 FACE="Arial"> OPTION( BUILD_FOR_VXL_DASHBOARD "Is this a build for the dashboard?" 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>