<a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:enable_language">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:enable_language</a><div><br></div><div>if(option_is_on)</div><div> enable_languauge(Fortran)</div>
<div>endif()</div><div><br></div><div>should work...</div><div><br><br><div class="gmail_quote">On Fri, Jul 23, 2010 at 1:20 PM, James C. Sutherland <span dir="ltr"><<a href="mailto:James.Sutherland@utah.edu">James.Sutherland@utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font face="verdana,sans-serif">I have a project that may need to use a fortran compiler depending on the user configuration of the project.<br>
<br>The
problem is that I don't want to force usage of fortran (in the
project() statement) since in some cases a user may not have a fortran
compiler installed and I want the configure to proceed.<br>
<br>Any ideas of how to accomplish this?<br><font color="#888888"><br>James</font></font>
<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></div>