[CMake] Problem with generated source files and Fortran90 modules

Brad King brad.king at kitware.com
Wed Mar 13 10:18:47 EDT 2013


On 03/13/2013 09:33 AM, Julien Bigot wrote:
> This might also be related to the fact that all uses of the module are 
> included inside #ifdef MYMACRO ... #endif where MYMACRO is defined with
> set_property(SOURCE usegen.f90 APPEND PROPERTY 
> COMPILE_DEFINITIONS_DEBUG MYMACRO)

Yes, I think that is the reason.  The Fortran dependency scanning
does not know about the per-source definitions.

The use of a generated source is a red herring.

I've cross-referenced this thread with a related issue tracker entry:

 http://www.cmake.org/Bug/view.php?id=13718#c32600

Thanks,
-Brad


More information about the CMake mailing list