usnistgov / REFPROP-manager

A manager class for holding many copies of REFPROP in memory
9 stars 8 forks source link

No CMAKE_Fortran_COMPILER could be found #14

Open ManojLII opened 1 year ago

ManojLII commented 1 year ago

I am trying to clone and build dynamic refprop dll build and facing issue in mapping fortran compiler. Can you please provide an example how to fix this issue?

-- The Fortran compiler identification is unknown CMake Error at CMakeLists.txt:3 (enable_language): No CMAKE_Fortran_COMPILER could be found.

ianhbell commented 1 year ago

Do you have a FORTRAN compiler installed? What operating system?

ManojLII commented 1 year ago

Windows OS. I installed MSYS2 and installed gfortran package

ianhbell commented 1 year ago

On windows, I think the only viable option is Intel Fortran (which is free). Mingw maybe also possible, there are instructions for that. I have only had failure with MSYS2. On windows, recommend to use linux via docker.

ManojLII commented 1 year ago

Installed Intel Fortan and the issue got resolved but facing different issue now

CMake Error at CMakeLists.txt:284 (add_library): No SOURCES given to target: REFPRP64

ianhbell commented 1 year ago

Sounds like your command line call is wrong. Please show what command you ran.

ManojLII commented 1 year ago

This the command I was using

git clone https://github.com/usnistgov/REFPROP-cmake --recursive cd REFPROP-cmake mkdir bld cd bld cmake .. -DREFPROP_FORTRAN_PATH="/Users/yyy/Desktop/manage/BETA/FORTRAN" -DREFPROP_DYNAMIC_RUNTIME=ON cmake --build . --config Release cd ../..

ianhbell commented 1 year ago

Sounds like the path you provided is incorrect, double-check your path contains the .FOR files