[CMake] Decide to include fortran during configure?
David Cole
david.cole at kitware.com
Fri Jul 23 14:09:49 EDT 2010
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:enable_language
if(option_is_on)
enable_languauge(Fortran)
endif()
should work...
On Fri, Jul 23, 2010 at 1:20 PM, James C. Sutherland <
James.Sutherland at utah.edu> wrote:
> I have a project that may need to use a fortran compiler depending on the
> user configuration of the project.
>
> 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.
>
> Any ideas of how to accomplish this?
>
> James
> _______________________________________________
> 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/20100723/fd5a957a/attachment.htm>
More information about the CMake
mailing list