[CMake] Fortran Module dependency inside a preprocessor conditional

2013-05-15 Thread Mark Cianciosa
I have a fortran code that I'm compiling twice to generate two libraries. There is a USE statement inside a preprocessor conditional. It looks like cmake is not picking up the dependency because of it. The code in question is SUBROUTINE calc_fbal(bsubu, bsubv) ... USE

Re: [CMake] Fortran Module dependency inside a preprocessor conditional

2013-05-15 Thread Brad King
On 05/15/2013 04:10 PM, Mark Cianciosa wrote: I have a fortran code that I'm compiling twice to generate two libraries. There is a USE statement inside a preprocessor conditional. It looks like cmake is not picking up the dependency because of it. The code in question is SUBROUTINE