[CMake] Fortran Compiler with Visual Studio

Matt Sutton matt.sutton at padtinc.com
Thu Mar 28 14:12:23 EDT 2019


Hello,
  I'm trying to configure a mixed language project (Fortran, CXX) with cmake 3.14 and I get the following cmake output:

The Fortran compiler identification is Intel 17.0.5.20170817
The CXX compiler identification is MSVC 19.16.27027.1
CMake Error at CMakeLists.txt:9 (project):
No CMAKE_FORTRAN_COMPILER could be found.


I have been able to create a simple "hello world" Fortran project manually in Visual Studio, compile, link and run it.  So, it seems the Fortran compiler integration is working.   I'm not sure why CMake can correctly identify the Fortran compiler on my machine, but then complain about a Fortran compiler not being found?  Any suggestions would be appreciated.
Thanks,
Matt


[cid:image001.png at 01CF79BE.4008A810]

We Make Innovation Work

www.padtinc.com

Matt Sutton, MSME
Senior Engineer, Lead Software Developer

matt.sutton at padtinc.com<mailto:eric.miller at padtinc.com>

480.813.4884 O
480.326.7940 M

[cid:image004.jpg at 01D4E557.1DAA6A10]
Arizona  |  California  |  Colorado  |  New Mexico  |  Texas  |  Utah

CONFIDENTIALITY NOTICE: This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain confidential and/or privileged information.  Unless you are the intended recipient, you are hereby notified that copying, forwarding, printing or otherwise disseminating the information contained in or attached to this e-mail is strictly prohibited. If you are not the intended recipient, please notify the sender by telephone, and immediately and permanently delete and destroy all copies and printouts of this e-mail message and/or attachments.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190328/75827492/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8163 bytes
Desc: image001.png
URL: <https://cmake.org/pipermail/cmake/attachments/20190328/75827492/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 7787 bytes
Desc: image004.jpg
URL: <https://cmake.org/pipermail/cmake/attachments/20190328/75827492/attachment-0001.jpg>


More information about the CMake mailing list