Thank's Gregory, this is an even better answer than I was looking for lol.<br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 6:17 PM, Gregory Peele ARA/CFD <span dir="ltr"><<a href="mailto:gpeele@ara.com">gpeele@ara.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p><span style="font-size:11.0pt;color:#1F497D">Robert,</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">Looking at your example, you might want to try out
FIND_PACKAGE(Doxygen).</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">In general, my understanding is that it’s more common in CMake
to call third-party programs using their full path rather than relying on an
executable search path. If the full path of the program is not known, then you
can use the FIND_PROGRAM command to search for it, which looks in a variety of
default locations and can be tailored to search wherever is appropriate. It
also takes into account Windows .exe suffixes vs. Linux no suffixes.</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;color:#1F497D">Gregory Peele, Jr.</span></p>
<p><span style="font-size:11.0pt;color:#1F497D">Applied Research Associates, Inc.</span></p>
<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a> [mailto:<a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a>] <b>On Behalf Of </b>Robert
Dailey<br>
<b>Sent:</b> Wednesday, March 25, 2009 7:12 PM<br>
<b>To:</b> cmake<br>
<b>Subject:</b> Re: [CMake] Adding to PATH</span></p>
</div><div><div></div><div class="h5">
<p> </p>
<p>Would this work?</p>
<div>
<div>
<p> </p>
</div>
<div>
<p> set( ENV{PATH}
"ENV{PATH};${CMAKE_SOURCE_DIR}/tools/doxygen" )</p>
</div>
<p> </p>
<div>
<p>On Wed, Mar 25, 2009 at 5:30 PM, Robert Dailey <<a href="mailto:rcdailey@gmail.com" target="_blank">rcdailey@gmail.com</a>> wrote:</p>
<div>
<p>Is there a way that I can temporarily add an executable
search path to PATH for the Linux and Windows platforms? I temporarily wish to
allow CMake to find certain third party command line applications so it may
execute them. I'd be calling CMake's execute_process() function to do this. But
this by no means should permanently change the PATH variable.</p>
</div>
</div>
<p> </p>
</div>
</div></div></div>
</div>
</blockquote></div><br>