Thanks very much for clearing this up. I fully understand my setup is a little unorthodox.<br><br>I'm glad I can now concentrate on finding a workaround instead of wondering what I'm doing wrong.<br><br><div class="gmail_quote">
On Tue, Feb 12, 2013 at 3:06 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 02/12/2013 08:15 AM, Petr Kmoch wrote:<br>
> project(Top) # No Fortran here<br>
</div>[snip]<br>
<div class="im">> My real setup doesn't really allow me to enable Fortran in the<br>
> toplevel project; is there a way to make this work without that?<br>
<br>
</div>CMake simply doesn't support this case right now. The language<br>
initialization stores some information in CMake variables, some<br>
in CMakeCache.txt, and some in CMakeFiles/<v>/CMake<lang>Compiler.<br>
Not all of that gets across sibling directories correctly so one<br>
must enable the language once from the highest directory containing<br>
everything that needs it.<br>
<br>
-Brad<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>