HI again,
I'm using TRY_COMPILE in a MPI Fortran project with CMake 2.8.11 to check
if the mpi.mod file is compatible with the current Fortran compiler.
The CMake code snippet is as follows:
...
FIND_PATH(MPI_MOD_FOUND mpi.mod PATHS ${MPI_Fortran_INCLUDE_PATH})
IF(MPI_MOD_FOUND)
Hi all,
I've seen that in CMake 3.0 appeared the nice CheckFortranSourceCompiles
feature.
Currently, common SO's like Ubuntu 14 includes CMake 2.8.12.2, but not
CMake 3.0 or higher. I would like to check if a very small Fortran test
program compiles using CMake 2.8.12.2, is this possible? how
Hi Victor,
have a look at the try_compile() command (
https://cmake.org/cmake/help/v2.8.12/cmake.html#command:try_compile ),
especially the second signature (the one which takes SOURCES).
Petr
On Tue, Feb 23, 2016 at 11:56 AM, victor sv wrote:
> Hi all,
>
> I've seen that
Thanks Pter!
Is the solution I was looking for. Great, it works as expected! :)
2016-02-23 12:31 GMT+01:00 Petr Kmoch :
> Hi Victor,
>
> have a look at the try_compile() command (
> https://cmake.org/cmake/help/v2.8.12/cmake.html#command:try_compile ),
> especially the