[CMake] Return code from CMake script
Pere Mato Vila
Pere.Mato at cern.ch
Fri Jun 22 10:35:48 EDT 2012
On Jun 22, 2012, at 4:25 PM, David Cole wrote:
As an alternative (workaround), perhaps you could write the status value into a file that you inspect after CMake returns?
Unfortunately this is not possible because who calls by script is ctest.
Then it should definitely be possible.
I meant ctest as the one that calls the test I have declared with add_test(). What I have is something like this:
add_test(cmake -D... -P myscript.cmake)
Cheers,
Pere
-------------------------------------------------------------
Pere Mato CERN, PH Department, CH 1211 Geneva 23, Switzerland
e-mail: pere.mato at cern.ch<mailto:pere.mato at cern.ch> tel: +41 22 76 78696
fax: +41 22 76 68792 gsm: +41 76 48 70855
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120622/c263c5b8/attachment.htm>
More information about the CMake
mailing list