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 <
[email protected]> 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
>
_______________________________________________
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

Reply via email to