<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div><font face="sans-serif">Thanks I'll look into it. </font></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div id="x_composer_signature">~~Scott</div>
<div><br>
</div>
<div><br>
</div>
<div>-------- Original message --------</div>
<div>From: "Alan W. Irwin" <irwin@beluga.phys.uvic.ca> </div>
<div>Date: 4/28/18 01:07 (GMT-08:00) </div>
<div>To: Scott Bloom <scott@towel42.com> </div>
<div>Cc: cmake@cmake.org </div>
<div>Subject: Re: [CMake] Multiple "projects" one directory </div>
<div><br>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 2018-04-27 22:06-0000 Scott Bloom wrote:<br>
<br>
> I have a rather complicated Qt based project.<br>
><br>
> We are looking at rolling out a subset tool, and it will be significantly smaller in functionality.<br>
><br>
> For that mode, I would like to set a CMake variable LITEVERSION that builds the tool with -DLITEVERSION defined.<br>
><br>
> however, one (or two) folders, the main executable (and possibly the main window folder), and I would like include into the tool with this turned on, and with it turned off<br>
><br>
> Is that possible?<br>
><br>
> Other times I have done this, I just have two build areas.. But 90% of this code base is the same, and will be built independent of the flag. So Id rather not build it twice<br>
<br>
Hi Scott:<br>
<br>
My opinion is two build areas is actually the way to go. Also, have<br>
you considered using ccache? With that software (see<br>
<<a href="http://ccache.samba.org/">http://ccache.samba.org/</a>>, rebuild costs tend to be negligible so<br>
that two build areas which build largely the same code will not cost<br>
that much more to build than one build area.<br>
<br>
Alan<br>
__________________________<br>
Alan W. Irwin<br>
<br>
Astronomical research affiliation with Department of Physics and Astronomy,<br>
University of Victoria (astrowww.phys.uvic.ca).<br>
<br>
Programming affiliations with the FreeEOS equation-of-state<br>
implementation for stellar interiors (freeeos.sf.net); the Time<br>
Ephemerides project (timeephem.sf.net); PLplot scientific plotting<br>
software package (plplot.sf.net); the libLASi project<br>
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);<br>
and the Linux Brochure Project (lbproject.sf.net).<br>
__________________________<br>
<br>
Linux-powered Science<br>
__________________________<br>
</div>
</span></font>
</body>
</html>