CMAKE_FORTRAN
-
HI!
I am new to Qt, and I do not do much online programming.
I am trying to set up an environment to compile in Fortran using QT. I followed all instructions and managed to install everything. But when I just try to compile the most basic Fortran lines, I get this message:/Users/Sergio/Test_QT/CMakeLists.txt:7: error: The CMAKE_Fortran_COMPILER: /usr/local/bin/gfortran is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
Something similar I got with eclipse and I corrected the path to:
/usr/bin/gcc. or /usr/bin/gfortranBut I cannot find how to do that in Qt.
I am afraid this is very basic, but I just do not know how to do it.
I appreciate is somebody can point me in the right direction.
-
Hi and welcome to devnet,
Can you share your CMakeLists.txt file ?