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

CMake confcheck switch to try_* functions #2090

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

islas
Copy link
Collaborator

@islas islas commented Aug 6, 2024

TYPE: enhancement

KEYWORDS: cmake, configuration

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
The configuration checks done by the CMake build use language-specific calls between various functions. This has lead to a rather complex signature that is also limited in scope.

Solution:
Simplify the wrf_conf_check calls to make use of CMake's built-in try_compile() and try_run() functions, forwarding argument to those as necessary. Aside from minor adjustments to the wrf_conf_check calls this should appear as a drop-in replacement that provides the same results as before, i.e. no change to the system configuration options detected.

@islas islas requested review from a team as code owners August 6, 2024 03:21
@islas
Copy link
Collaborator Author

islas commented Aug 6, 2024

Requires #2056, #2053, #2086, #2087, and #2088

amstokely
amstokely previously approved these changes Sep 23, 2024
@islas islas force-pushed the cmake-confcheck-try_funcs branch from 812acda to fe15edf Compare December 9, 2024 22:47
@islas islas changed the base branch from release-v4.6.1 to develop December 9, 2024 23:38
@amstokely amstokely self-requested a review December 16, 2024 17:18
@islas islas merged commit 5dd2c19 into wrf-model:develop Dec 20, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants