Skip to content

Conversation

@billsacks
Copy link
Member

There is some logic in the CMakeLists.txt file that checks the name of the C compiler to determine if it is the GNU compiler. This logic should be changed to check the name of the Fortran compiler instead. This is important on a Mac where the C compiler is clang and the Fortran compiler is gfortran.

Without this change, I was getting build failures on my Mac in gptl and the tests. This change resolved those build failures (changing warnings to errors).

There is some logic in the CMakeLists.txt file that checks the name of
the C compiler to determine if it is the GNU compiler. This logic should
be changed to check the name of the Fortran compiler instead. This is
important on a Mac where the C compiler is clang and the Fortran compiler
is gfortran.
@billsacks billsacks requested a review from jedwards4b March 18, 2025 00:52
@jedwards4b jedwards4b merged commit d5ae714 into NCAR:main Apr 16, 2025
3 checks passed
@billsacks billsacks deleted the fix_gfortran_detection branch April 16, 2025 19:44
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

Successfully merging this pull request may close these issues.

2 participants