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

Initialize variable so as not to keep appending. #66

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

DJDavies2
Copy link
Contributor

This is a fix for https://github.com/JCSDA-internal/jedi-cmake/issues/31.

Running the FindNetCDF.cmake script sets, among other thing, the NETCDF_LIBRARIES variable. It appears that repeated incremental rebuilds that include re-runs of cmake result in the contents of this variable being appended and hence constantly expanding. It would be nice if the variable wasn't appended in this way, although it doesn't cause failures.

This seems to address the issue by initialising NETCDF_LIBRARIES to an empty string before use in FindNetCDF.

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks for this @DJDavies2!

@climbfuji climbfuji requested a review from aerorahul June 30, 2023 11:15
Copy link
Collaborator

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I didn't know this was happening under the hood.

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.

3 participants