jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
333 stars 82 forks source link

Issue While attempting to Configure build directory using Cmake #552

Closed Madhav-byte-debug closed 3 months ago

Madhav-byte-debug commented 4 months ago

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!
borderite commented 3 months ago

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

jacobwilliams commented 3 months ago

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