json-fortran icon indicating copy to clipboard operation
json-fortran copied to clipboard

Issue While attempting to Configure build directory using Cmake

Open Madhav-byte-debug opened this issue 1 year ago • 1 comments

I cloned the repo locally to a desktop folder. created a directory "b" within the repo folder. After running cmake C:\Users\Admin\Desktop\HPC\json-fortran I get the following error.

CMake Error at CMakeLists.txt:25 (enable_language):
  Running

   'nmake' '-?'

  failed with:

   no such file or directory


CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Madhav-byte-debug avatar Apr 06 '24 06:04 Madhav-byte-debug

Did you put your compiler name (e.g., /usr/bin/gfortran) in the environment variable "FC"?

borderite avatar May 04 '24 18:05 borderite

Yes you need to CMake what compiler to use. You can consult the CMake documentation about how to specify the compiler.

jacobwilliams avatar May 25 '24 20:05 jacobwilliams