[CMake] execute short program during cmake configuration ?

Guy Harris guy at alum.mit.edu
Thu Jun 2 21:18:39 EDT 2016


On Jun 2, 2016, at 2:56 PM, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:

> It appears you want the Fortran equivalent of the CHECK_C_SOURCE_RUNS
> macro. So I suggest you copy that macro (found in
> Modules/CheckCSourceRuns.cmake) to your own source code where your
> other home-grown CMake macros are located, rename that macro to
> CHECK_FORTRAN_SOURCE_RUNS, and make the minor modifications to that
> macro that are appropriate for the Fortran case.

...and contribute it back to the CMake maintainers to encourage its appearance in future releases?


More information about the CMake mailing list