[CMake] Compiling Fortran Modules And

Pritchett-Sheats, Lori lpritch at lanl.gov
Wed May 15 12:06:49 EDT 2013


Thank you! That fixed it. 

And yes, I had a typo. should have been F90Library_SOURCE_FILES.




Lori A. Pritchett-Sheats
Los Alamos National Laboratory
CCS-2, Computational Physics
505-665-6675

________________________________________
From: Brad King [brad.king at kitware.com]
Sent: Tuesday, May 14, 2013 3:13 PM
To: Pritchett-Sheats, Lori
Cc: cmake at cmake.org
Subject: Re: [CMake] Compiling Fortran Modules And

On 05/13/2013 02:08 PM, Pritchett-Sheats, Lori wrote:
>       IMPLICIT_DEPENDS Fortran "${F_file}"

The custom command is running a C preprocessor, not a Fortran compiler,
so use "IMPLICIT_DEPENDS C".

>   list(APPEND PGSLibIface_SOURCE_FILES ${new_file_f90})

Do you mean to append to F90Library_SOURCE_FILES here?

-Brad


More information about the CMake mailing list