[cmake-developers] Fortran module dependencies and preprocessing in CMake 3.3.0-rc3

Brad King brad.king at kitware.com
Mon Jul 6 09:02:55 EDT 2015


On 07/02/2015 06:25 PM, Radovan Bast wrote:
> I can consistently reproduce it locally on 3 different machines (Ubuntu 14.04
> and Arch derivative; gfortran 4.8.4 and 5.1.0).
> 
> I have Git bisected the history and this is the commit that broke this
> example on my machines:
> https://github.com/Kitware/CMake/commit/0b945ea9a6a38d1b3ee27cc32afb4268bd571600

Thanks for bisecting!

> Can you see something possibly related in there?

That change may have accidentally affected the preprocessor definitions
sent to the Fortran compiler.  The error message you're seeing is actually
coming from the compiler trying to use the module, so SOMEDEF must be
getting defined.  However, without seeing your CMake code I cannot
determine how.

Can you provide a minimal source tarball that exhibits the problem?

Thanks,
-Brad


More information about the cmake-developers mailing list