Intel fortran compiler for cmake

Dear Dr. Jonkman,

I’m a student at Pennstate, and I don’t have much experience with cmake, I’ll try my best to explain the issue I’m running into.
I have been trying to compile OpenFAST on the cluster of my department (Linux RedHat). All the libraries and compilers meet the requirements for compiling OpenFAST except gfortran but the cluster has a newer version of ifortran, (v12 and v18 actually).
First, we (the system Administrator of my department is helping me to set up the software) found out that the cmake could not find the intel fortran compiler because it was not in usr/bin/ so we forced it to search at the right location using:

cmake -DCMAKE_Fortran_COMPILER=/usr/local/intel/fc/18/compilers_and_libraries_2018.3.222/linux/bin/intel64/ifort …/

or more simply:

cmake -DCMAKE_Fortran_COMPILER=ifort …/

this worked fine except the cmake does not read the version of the compiler: the log file indicates that the variable which should contain the version of the fortran compiler is empty.
How and where is the version of the compiler read in the cmake ?

Thank you in advance for your time.

Best regards,

Auriane Bottai

Dear Auriane,

I’m only really familiar with Building OpenFAST on Windows with Visual Studio.

For specific questions on using CMake to install and build OpenFAST on Linux, I suggest posting your question on the OpenFAST issues page, where the OpenFAST development community can support you: Not everyone in the OpenFAST development community checks this forum regularly.

Best regards,