[CMake] How to get the result of a test during tests
Brandon Van Every
bvanevery at gmail.com
Mon Oct 22 14:29:27 EDT 2007
On 10/22/07, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
>
> That is, use EXECUTE_PROCESS in ordinary cmake code to determine if the MPI
> function works well.
Although EXECUTE_PROCESS, generally speaking, cannot determine if
something will work under your actual compilation environment. It
only works in the environment you ran CMake. For your compilation
environment you'll need TRY_COMPILE or TRY_RUN.
Cheers,
Brandon Van Every
More information about the CMake
mailing list