[CMake] Fortran_MODULE_DIRECTORY ignored in second subdir

Petr Kmoch petr.kmoch at gmail.com
Tue Feb 12 09:09:44 EST 2013


Thanks very much for clearing this up. I fully understand my setup is a
little unorthodox.

I'm glad I can now concentrate on finding a workaround instead of wondering
what I'm doing wrong.

On Tue, Feb 12, 2013 at 3:06 PM, Brad King <brad.king at kitware.com> wrote:

> On 02/12/2013 08:15 AM, Petr Kmoch wrote:
> > project(Top) # No Fortran here
> [snip]
> > My real setup doesn't really allow me to enable Fortran in the
> > toplevel project; is there a way to make this work without that?
>
> CMake simply doesn't support this case right now.  The language
> initialization stores some information in CMake variables, some
> in CMakeCache.txt, and some in CMakeFiles/<v>/CMake<lang>Compiler.
> Not all of that gets across sibling directories correctly so one
> must enable the language once from the highest directory containing
> everything that needs it.
>
> -Brad
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130212/a991db6f/attachment.htm>


More information about the CMake mailing list