<br><br><div class="gmail_quote">On Fri, Jun 22, 2012 at 10:15 AM, Pere Mato Vila <span dir="ltr"><<a href="mailto:Pere.Mato@cern.ch" target="_blank">Pere.Mato@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Thanks very much for you prompt answer.<div class="im"><br>
<div><br>
<blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<div>As an alternative (workaround), perhaps you could write the status value into a file that you inspect after CMake returns?</div>
</span><br>
</blockquote>
<br>
</div></div>
Unfortunately this is not possible because who calls by script is ctest. <div class="im"><br></div></div></blockquote><div><br></div><div>Then it should definitely be possible.</div><div><br></div><div>Before calling "message(FATAL_ERROR" write out a file with "file(WRITE" to indicate the return value that you want.</div>
<div><br></div><div><span class="Apple-style-span">Then after the script is done (or after </span>ctest_configure<span class="Apple-style-span"> if you're producing the FATAL_ERROR in a CMakeLists), use "file(READ" in the ctest script to read the file that has the return value in it.</span></div>
<div><br></div><div>This may or may not be "too much effort" for what you're trying to do, but it should certainly be possible...</div><div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="im">
<div><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><br>
<span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
Cheers,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<br>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span style="white-space:pre-wrap"></span>Pere</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<br>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
-------------------------------------------------------------</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
Pere Mato CERN, PH Department, CH 1211 Geneva 23, Switzerland</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
e-mail: <a href="mailto:pere.mato@cern.ch" target="_blank">pere.mato@cern.ch</a> tel: <a href="tel:%2B41%2022%2076%2078696" value="+41227678696" target="_blank">+41 22 76 78696</a></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
fax: <a href="tel:%2B41%2022%2076%2068792" value="+41227668792" target="_blank">+41 22 76 68792</a> gsm: <a href="tel:%2B41%2076%2048%2070855" value="+41764870855" target="_blank">+41 76 48 70855</a></div>
</span><br>
</span></span></div>
<br>
</div></div>
</blockquote></div><br>