-
Notifications
You must be signed in to change notification settings - Fork 35
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
CMake had difficulty finding the Fortran compiler #53
Comments
|
I have sent this to @shahmoradi and invited him to join the conversation. How does CMake decide the default name of a compiler (or tell whether something is a Fortran compiler in the first place?) Does it look up a list? Thanks. Since @shahmoradi has five compilers installed in the system |
I guess it looks through standard names, for example in the CI jobs I never had to specify the compiler location as it was always found. |
I removed
I got the following:
If did not misunderstand, even with |
I guess we could defer the detection of the C compiler, but ihmo its hard to find a machine with a Fortran compiler but without C compiler :]
|
Agree. But logically, it is still better to check the C compiler only when needed. After your new PR, it works now. BTW, I saw |
no, its probably just a bit too old |
Who is "it"? |
your compiler |
I modified README for this issue: Lines 217 to 219 in 7565f6f
Is it correct? |
yes |
Hi @jschueller ,
Could you fix this? See https://fortran-lang.discourse.group/t/prima-cmake-building-system-and-c-interface-available/6499/3?u=zaikunzhang
This reminds me of the following, which I hope you could also kindly handle. We should provide options so that users can choose to
Of course, since the C library depends on the Fortran one (before we have a pure C implementation), the second case would necessitate the compilation of the Fortran library as well, but the user does not need to say so.
Why do we separate these cases? Because a Fortran user does not necessarily have a C compiler installed. Anyway, he/she does not intend to use the C library, so it is illogical (indeed confusing) to compile it.
Thank you very much for taking care of these.
Best regards,
Zaikun
The text was updated successfully, but these errors were encountered: