[CMake] Set Fortran compiler in CMakeLists.txt?
Bill Hoffman
bill.hoffman at kitware.com
Thu Apr 30 13:59:41 EDT 2015
On 4/30/2015 12:52 PM, Nikolaus Rath wrote:
> Hello,
>
> Is there a way to set the Fortran compiler from CMakeLists.txt (instead
> of setting the FC environment when calling cmake)?
No, not really. That is not the way CMake works. You want to avoid
users of your project to ever have to edit a CMakeLists.txt file. The
compiler used is not something you want hard coded into a CMakeLists.txt
file.
-Bill
More information about the CMake
mailing list