-
Notifications
You must be signed in to change notification settings - Fork 791
CMake check system for underscore requirements between C and Fortran #2091
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
base: develop
Are you sure you want to change the base?
Changes from 5 commits
58ee143
1864788
f7d0aa2
34c468f
2f2b7df
891ee52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -65,6 +65,31 @@ if ( NOT "${FSEEKO64}" ) | |||||
| set(FSEEKO ${FSEEKO} PARENT_SCOPE) | ||||||
| endif() | ||||||
|
|
||||||
|
|
||||||
| # Check if underscores are needing for implicit c-Fortran intrefacing functions that | ||||||
| # don't use ISO C binding to map symbols | ||||||
| wrf_conf_check( | ||||||
| # try_run() with more than one source was introduced in CMake 3.25+ | ||||||
| # so we won't use it here until we see reasonable need to incease the | ||||||
|
||||||
| # so we won't use it here until we see reasonable need to incease the | |
| # so we won't use it here until we see reasonable need to increase the |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||
| #include <stdio.h> | ||||||
| #ifdef UNDERSCORE | ||||||
|
||||||
| #ifdef UNDERSCORE | |
| #if defined(UNDERSCORE) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
|
|
||
| program test | ||
| write( *, * ) "Calling foo() from Fortran" | ||
| call foo() | ||
| end program test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'needing' to 'needed' and 'intrefacing' to 'interfacing'.