Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No CMAKE_Fortran_COMPILER could be found #14

Open
ManojLII opened this issue Dec 2, 2022 · 7 comments
Open

No CMAKE_Fortran_COMPILER could be found #14

ManojLII opened this issue Dec 2, 2022 · 7 comments

Comments

@ManojLII
Copy link

ManojLII commented Dec 2, 2022

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
Copy link
Collaborator

ianhbell commented Dec 2, 2022

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

@ManojLII
Copy link
Author

ManojLII commented Dec 2, 2022

Windows OS. I installed MSYS2 and installed gfortran package

@ianhbell
Copy link
Collaborator

ianhbell commented Dec 2, 2022

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
Copy link
Author

ManojLII commented Dec 2, 2022

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
Copy link
Collaborator

ianhbell commented Dec 2, 2022

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

@ManojLII
Copy link
Author

ManojLII commented Dec 3, 2022

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
Copy link
Collaborator

ianhbell commented Dec 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants